diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2016-09-12 21:37:41 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2016-09-18 14:26:49 +0200 |
| commit | b4c739dbdd028277c17c90ebf613c520433622d1 (patch) | |
| tree | 111f31915bb7b904e65e05f0545eb877d0e2e74c /src/libstd/net | |
| parent | 888970370a3f4b9e8be399869581422c67638d7b (diff) | |
| download | rust-b4c739dbdd028277c17c90ebf613c520433622d1.tar.gz rust-b4c739dbdd028277c17c90ebf613c520433622d1.zip | |
Add missing Eq implementations
Diffstat (limited to 'src/libstd/net')
| -rw-r--r-- | src/libstd/net/mod.rs | 2 | ||||
| -rw-r--r-- | src/libstd/net/parser.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/net/mod.rs b/src/libstd/net/mod.rs index 2a78afa85f7..ad2fe3c1c0d 100644 --- a/src/libstd/net/mod.rs +++ b/src/libstd/net/mod.rs @@ -38,7 +38,7 @@ mod parser; /// /// [`shutdown`]: struct.TcpStream.html#method.shutdown /// [`TcpStream`]: struct.TcpStream.html -#[derive(Copy, Clone, PartialEq, Debug)] +#[derive(Copy, Clone, PartialEq, Eq, Debug)] #[stable(feature = "rust1", since = "1.0.0")] pub enum Shutdown { /// Indicates that the reading portion of this stream/socket should be shut diff --git a/src/libstd/net/parser.rs b/src/libstd/net/parser.rs index 854d87c4cbe..ed4af471f2f 100644 --- a/src/libstd/net/parser.rs +++ b/src/libstd/net/parser.rs @@ -370,7 +370,7 @@ impl FromStr for SocketAddr { /// An error returned when parsing an IP address or a socket address. #[stable(feature = "rust1", since = "1.0.0")] -#[derive(Debug, Clone, PartialEq)] +#[derive(Debug, Clone, PartialEq, Eq)] pub struct AddrParseError(()); #[stable(feature = "addr_parse_error_error", since = "1.4.0")] |
