Update mod.rs

Derive trait `Eq` in `ParseError`.
This commit is contained in:
Jonas mg 2016-12-08 18:17:26 +00:00 committed by GitHub
parent ae7fddc215
commit d411f05032
1 changed files with 2 additions and 2 deletions

View File

@ -184,10 +184,10 @@ macro_rules! nums { ($x:ident) => (Item::Numeric(Numeric::$x, Pad::Space)) }
macro_rules! fix { ($x:ident) => (Item::Fixed(Fixed::$x)) }
/// An error from the `parse` function.
#[derive(Debug, Clone, PartialEq, Copy)]
#[derive(Debug, Clone, PartialEq, Eq, Copy)]
pub struct ParseError(ParseErrorKind);
#[derive(Debug, Clone, PartialEq, Copy)]
#[derive(Debug, Clone, PartialEq, Eq, Copy)]
enum ParseErrorKind {
/// Given field is out of permitted range.
OutOfRange,