aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Priest <jpriest@mit.edu>2019-08-12 21:27:26 -0500
committerGitHub <noreply@github.com>2019-08-12 21:27:26 -0500
commitbbff1080f94c51ea03c7353ec0b1647038cc09d9 (patch)
treefa9fb2657126f1af9f3c35e87521f390ace43778
parente0bf3a087ae0d775d813ad079ec1629d9876c02f (diff)
downloadmilf-rs-bbff1080f94c51ea03c7353ec0b1647038cc09d9.tar.gz
milf-rs-bbff1080f94c51ea03c7353ec0b1647038cc09d9.zip
Derive Clone+PartialEq for Spanned
Should any other traits be derived?
-rw-r--r--src/spanned.rs2
1 files changed, 1 insertions, 1 deletions
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<T> {
/// The start range.
start: usize,