From d411f050321eac8440340e905e25d4f1c46b6831 Mon Sep 17 00:00:00 2001 From: Jonas mg Date: Thu, 8 Dec 2016 18:17:26 +0000 Subject: [PATCH] Update mod.rs Derive trait `Eq` in `ParseError`. --- src/format/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/format/mod.rs b/src/format/mod.rs index cf10831..ad5ddb9 100644 --- a/src/format/mod.rs +++ b/src/format/mod.rs @@ -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,