Skip to content

Commit

Permalink
Derive Clone for IpAddr and SocketAddr
Browse files Browse the repository at this point in the history
  • Loading branch information
anasazi committed Aug 19, 2013
1 parent 4bdceb9 commit 97555e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libstd/rt/io/net/ip.rs
Expand Up @@ -17,7 +17,7 @@ use option::{Option, None, Some};

type Port = u16;

#[deriving(Eq, TotalEq)]
#[deriving(Eq, TotalEq, Clone)]
pub enum IpAddr {
Ipv4Addr(u8, u8, u8, u8),
Ipv6Addr(u16, u16, u16, u16, u16, u16, u16, u16)
Expand Down Expand Up @@ -62,7 +62,7 @@ impl ToStr for IpAddr {
}
}

#[deriving(Eq, TotalEq)]
#[deriving(Eq, TotalEq, Clone)]
pub struct SocketAddr {
ip: IpAddr,
port: Port,
Expand Down

0 comments on commit 97555e8

Please sign in to comment.