From bbff1080f94c51ea03c7353ec0b1647038cc09d9 Mon Sep 17 00:00:00 2001 From: Jason Priest Date: Mon, 12 Aug 2019 21:27:26 -0500 Subject: Derive Clone+PartialEq for Spanned Should any other traits be derived? --- src/spanned.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spanned.rs b/src/spanned.rs index cf69383..d9fec3a 100644 --- a/src/spanned.rs +++ b/src/spanned.rs @@ -32,7 +32,7 @@ pub const VALUE: &'static str = "$__toml_private_value"; /// assert_eq!(u.s.into_inner(), String::from("value")); /// } /// ``` -#[derive(Debug)] +#[derive(Clone, Debug, PartialEq)] pub struct Spanned { /// The start range. start: usize, -- cgit v1.2.3