diff options
author | Erich Gubler <erichdongubler@gmail.com> | 2019-09-04 17:44:32 -0600 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2019-09-04 18:44:32 -0500 |
commit | b2a427ee7df39d27e86348fbb3f4e79cf2074d41 (patch) | |
tree | 8e88c5e74feed20e549c9d97500d52633caa3d6c /src | |
parent | be450b70d029dc39959d6462ff2c6c1a504e0c43 (diff) | |
download | milf-rs-b2a427ee7df39d27e86348fbb3f4e79cf2074d41.tar.gz milf-rs-b2a427ee7df39d27e86348fbb3f4e79cf2074d41.zip |
Make `de::Error` `Eq` in addition to current `PartialEq` (#330)
Not sure why this wasn't implemented before, since `ser::Error` has implemented `PartialEq` and `Eq` as of PR #144.
Diffstat (limited to 'src')
-rw-r--r-- | src/de.rs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -81,12 +81,12 @@ where } /// Errors that can occur when deserializing a type. -#[derive(Debug, PartialEq, Clone)] +#[derive(Debug, PartialEq, Eq, Clone)] pub struct Error { inner: Box<ErrorInner>, } -#[derive(Debug, PartialEq, Clone)] +#[derive(Debug, PartialEq, Eq, Clone)] struct ErrorInner { kind: ErrorKind, line: Option<usize>, @@ -97,7 +97,7 @@ struct ErrorInner { } /// Errors that can occur when deserializing a type. -#[derive(Debug, PartialEq, Clone)] +#[derive(Debug, PartialEq, Eq, Clone)] enum ErrorKind { /// EOF was reached when looking for a value UnexpectedEof, |