Skip to content

Commit c5edc70

Browse files
committed
std: make std::io::IoError{,Kind} implement Eq
1 parent ffd9966 commit c5edc70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/io/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ pub type IoResult<T> = Result<T, IoError>;
293293
/// # FIXME
294294
///
295295
/// Is something like this sufficient? It's kind of archaic
296-
#[deriving(PartialEq, Clone)]
296+
#[deriving(PartialEq, Eq, Clone)]
297297
pub struct IoError {
298298
/// An enumeration which can be matched against for determining the flavor
299299
/// of error.
@@ -435,7 +435,7 @@ impl fmt::Show for IoError {
435435
}
436436

437437
/// A list specifying general categories of I/O error.
438-
#[deriving(PartialEq, Clone, Show)]
438+
#[deriving(PartialEq, Eq, Clone, Show)]
439439
pub enum IoErrorKind {
440440
/// Any I/O error not part of this list.
441441
OtherIoError,

0 commit comments

Comments
 (0)