aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Huss <eric@huss.org>2019-03-11 11:34:30 -0700
committerGitHub <noreply@github.com>2019-03-11 11:34:30 -0700
commitdbdcc9ccc4233b4a7b3a1ce42d49fb863f1c903a (patch)
tree45187eadf0547740dbe82c9cda4737c72ca693be
parent4fb12b493edaae62a3b6fd5320e526ae7cc9542e (diff)
parentfbc055771b54d0c40232c87a4266fcc2ea2380e9 (diff)
downloadmilf-rs-dbdcc9ccc4233b4a7b3a1ce42d49fb863f1c903a.tar.gz
milf-rs-dbdcc9ccc4233b4a7b3a1ce42d49fb863f1c903a.zip
Merge pull request #292 from omarabid/master
Add PartialEq to Toml::de
-rw-r--r--src/de.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/de.rs b/src/de.rs
index 437ead5..92db5d0 100644
--- a/src/de.rs
+++ b/src/de.rs
@@ -79,12 +79,12 @@ where
}
/// Errors that can occur when deserializing a type.
-#[derive(Debug, Clone)]
+#[derive(Debug, PartialEq, Clone)]
pub struct Error {
inner: Box<ErrorInner>,
}
-#[derive(Debug, Clone)]
+#[derive(Debug, PartialEq, Clone)]
struct ErrorInner {
kind: ErrorKind,
line: Option<usize>,
@@ -94,7 +94,7 @@ struct ErrorInner {
}
/// Errors that can occur when deserializing a type.
-#[derive(Debug, Clone)]
+#[derive(Debug, PartialEq, Clone)]
enum ErrorKind {
/// EOF was reached when looking for a value
UnexpectedEof,