Merge pull request #292 from omarabid/master

Add PartialEq to Toml::de
This commit is contained in:
Eric Huss 2019-03-11 11:34:30 -07:00 committed by GitHub
commit 1ba48019d7

View file

@ -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,