diff options
author | Abid Omar <contact@omarabid.com> | 2019-03-11 18:38:50 +0100 |
---|---|---|
committer | Abid Omar <contact@omarabid.com> | 2019-03-11 18:38:50 +0100 |
commit | fbc055771b54d0c40232c87a4266fcc2ea2380e9 (patch) | |
tree | 45187eadf0547740dbe82c9cda4737c72ca693be /src | |
parent | 4fb12b493edaae62a3b6fd5320e526ae7cc9542e (diff) | |
download | milf-rs-fbc055771b54d0c40232c87a4266fcc2ea2380e9.tar.gz milf-rs-fbc055771b54d0c40232c87a4266fcc2ea2380e9.zip |
Add PartialEq to Toml::de
Add PartialEq trait to Error, ErrorInner and ErrorKind.
Relevant issue: https://github.com/alexcrichton/toml-rs/issues/291
Diffstat (limited to 'src')
-rw-r--r-- | src/de.rs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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, |