aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2019-08-13 09:38:25 -0500
committerGitHub <noreply@github.com>2019-08-13 09:38:25 -0500
commit39d720d84c42534f2dacf1c7d09af108d4a22758 (patch)
treefa9fb2657126f1af9f3c35e87521f390ace43778
parente0bf3a087ae0d775d813ad079ec1629d9876c02f (diff)
parentbbff1080f94c51ea03c7353ec0b1647038cc09d9 (diff)
downloadmilf-rs-39d720d84c42534f2dacf1c7d09af108d4a22758.tar.gz
milf-rs-39d720d84c42534f2dacf1c7d09af108d4a22758.zip
Merge pull request #318 from JustAPerson/patch-1
Derive Clone+PartialEq for Spanned
-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,