about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorErick Tryzelaar <erick.tryzelaar@gmail.com>2014-07-13 16:28:01 -0700
committerErick Tryzelaar <erick.tryzelaar@gmail.com>2014-07-13 16:28:01 -0700
commitc5edc70fadd136c0e0b1fe402fbb3170e94458aa (patch)
tree8969d673d9cc6041dee9100f96bd3879957b1353 /src/libstd
parentffd9966c79ad034fe16e66e6c6795473473a6f50 (diff)
downloadrust-c5edc70fadd136c0e0b1fe402fbb3170e94458aa.tar.gz
rust-c5edc70fadd136c0e0b1fe402fbb3170e94458aa.zip
std: make std::io::IoError{,Kind} implement Eq
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/io/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs
index db4df7a8a6f..6ac092fd8c6 100644
--- a/src/libstd/io/mod.rs
+++ b/src/libstd/io/mod.rs
@@ -293,7 +293,7 @@ pub type IoResult<T> = Result<T, IoError>;
 /// # 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,