about summary refs log tree commit diff
path: root/src/libstd/net
diff options
context:
space:
mode:
authorJonathan Turner <jonathandturner@users.noreply.github.com>2016-09-22 11:25:01 -0700
committerGitHub <noreply@github.com>2016-09-22 11:25:01 -0700
commitb60fc5d16ab5b089f0eba395a838375f5a92f11c (patch)
tree1411af35b45e18e76214f04bb5dfe657f944116f /src/libstd/net
parentb474c82add775cfade81766da09d5f2ef632f09e (diff)
parentb4c739dbdd028277c17c90ebf613c520433622d1 (diff)
downloadrust-b60fc5d16ab5b089f0eba395a838375f5a92f11c.tar.gz
rust-b60fc5d16ab5b089f0eba395a838375f5a92f11c.zip
Rollup merge of #36423 - GuillaumeGomez:eq_impl, r=pnkfelix
Add missing Eq implementations

Part of #36301.
Diffstat (limited to 'src/libstd/net')
-rw-r--r--src/libstd/net/mod.rs2
-rw-r--r--src/libstd/net/parser.rs2
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")]