From c5edc70fadd136c0e0b1fe402fbb3170e94458aa Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Sun, 13 Jul 2014 16:28:01 -0700 Subject: [PATCH] std: make std::io::IoError{,Kind} implement Eq --- src/libstd/io/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs index db4df7a8a6f10..6ac092fd8c657 100644 --- a/src/libstd/io/mod.rs +++ b/src/libstd/io/mod.rs @@ -293,7 +293,7 @@ pub type IoResult = Result; /// # FIXME /// /// Is something like this sufficient? It's kind of archaic -#[deriving(PartialEq, Clone)] +#[deriving(PartialEq, Eq, Clone)] pub struct IoError { /// An enumeration which can be matched against for determining the flavor /// of error. @@ -435,7 +435,7 @@ impl fmt::Show for IoError { } /// A list specifying general categories of I/O error. -#[deriving(PartialEq, Clone, Show)] +#[deriving(PartialEq, Eq, Clone, Show)] pub enum IoErrorKind { /// Any I/O error not part of this list. OtherIoError,