Skip to content

Commit

Permalink
std: make std::io::IoError{,Kind} implement Eq
Browse files Browse the repository at this point in the history
  • Loading branch information
erickt committed Jul 13, 2014
1 parent ffd9966 commit c5edc70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libstd/io/mod.rs
Expand Up @@ -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.
Expand Down Expand Up @@ -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,
Expand Down

5 comments on commit c5edc70

@bors
Copy link
Contributor

@bors bors commented on c5edc70 Jul 14, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from alexcrichton
at erickt@c5edc70

@bors
Copy link
Contributor

@bors bors commented on c5edc70 Jul 14, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging erickt/rust/master = c5edc70 into auto

@bors
Copy link
Contributor

@bors bors commented on c5edc70 Jul 14, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

erickt/rust/master = c5edc70 merged ok, testing candidate = 996263a

@bors
Copy link
Contributor

@bors bors commented on c5edc70 Jul 14, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 996263a

Please sign in to comment.