From 4018ebc65a6e1c8a44556d8325aa27fad9b94195 Mon Sep 17 00:00:00 2001 From: Jason Priest Date: Mon, 12 Aug 2019 21:27:26 -0500 Subject: [PATCH] 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,