Skip to content

Commit 97555e8

Browse files
committed
Derive Clone for IpAddr and SocketAddr
1 parent 4bdceb9 commit 97555e8

File tree

1 file changed

+2
-2
lines changed
  • src/libstd/rt/io/net

1 file changed

+2
-2
lines changed

src/libstd/rt/io/net/ip.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use option::{Option, None, Some};
1717

1818
type Port = u16;
1919

20-
#[deriving(Eq, TotalEq)]
20+
#[deriving(Eq, TotalEq, Clone)]
2121
pub enum IpAddr {
2222
Ipv4Addr(u8, u8, u8, u8),
2323
Ipv6Addr(u16, u16, u16, u16, u16, u16, u16, u16)
@@ -62,7 +62,7 @@ impl ToStr for IpAddr {
6262
}
6363
}
6464

65-
#[deriving(Eq, TotalEq)]
65+
#[deriving(Eq, TotalEq, Clone)]
6666
pub struct SocketAddr {
6767
ip: IpAddr,
6868
port: Port,

0 commit comments

Comments
 (0)