Skip to content

Commit

Permalink
Add PartialOrd and Ord implementation for std::net::SocketAddr
Browse files Browse the repository at this point in the history
  • Loading branch information
tbu- committed Aug 29, 2018
1 parent ca0de63 commit dd4c0eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/net/addr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ use slice;
/// assert_eq!(socket.port(), 8080);
/// assert_eq!(socket.is_ipv4(), true);
/// ```
#[derive(Copy, Clone, PartialEq, Eq, Hash, Debug)]
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
#[stable(feature = "rust1", since = "1.0.0")]
pub enum SocketAddr {
/// An IPv4 socket address.
Expand Down

0 comments on commit dd4c0eb

Please sign in to comment.