Skip to content
This repository has been archived by the owner on Sep 24, 2022. It is now read-only.

Commit

Permalink
Add PartialEq to Toml::de
Browse files Browse the repository at this point in the history
Add PartialEq trait to Error, ErrorInner and ErrorKind.

Relevant issue: #291
  • Loading branch information
omarabid committed Mar 11, 2019
1 parent 4fb12b4 commit fbc0557
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>,
Expand All @@ -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,
Expand Down

0 comments on commit fbc0557

Please sign in to comment.