]> git.lizzy.rs Git - rust.git/commitdiff
std: make std::io::IoError{,Kind} implement Eq
authorErick Tryzelaar <erick.tryzelaar@gmail.com>
Sun, 13 Jul 2014 23:28:01 +0000 (16:28 -0700)
committerErick Tryzelaar <erick.tryzelaar@gmail.com>
Sun, 13 Jul 2014 23:28:01 +0000 (16:28 -0700)
src/libstd/io/mod.rs

index db4df7a8a6f10ecf3525a8ba8a77fb40e36ddd77..6ac092fd8c657e4998f19a7b695942bfc65905ef 100644 (file)
@@ -293,7 +293,7 @@ fn file_product(p: &Path) -> IoResult<u32> {
 /// # 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 @@ fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
 }
 
 /// 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,