From 7c9b0a39db0c4c235db372f88d725fae6e82889f Mon Sep 17 00:00:00 2001 From: est31 Date: Mon, 16 Sep 2019 23:32:45 +0200 Subject: Support deserializing spanned keys (#333) * Store key spans in the deserializer * Support deserializing spanned keys * Store key spans of the table header as well * Support nested table key spans as well --- src/spanned.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/spanned.rs') diff --git a/src/spanned.rs b/src/spanned.rs index 1538f96..3318d28 100644 --- a/src/spanned.rs +++ b/src/spanned.rs @@ -28,7 +28,7 @@ pub(crate) const VALUE: &str = "$__toml_private_value"; /// assert_eq!(u.s.into_inner(), String::from("value")); /// } /// ``` -#[derive(Clone, Debug, PartialEq)] +#[derive(Clone, Debug, PartialEq, Eq, Hash)] pub struct Spanned { /// The start range. start: usize, -- cgit v1.2.3