diff options
author | Carl Lerche <me@carllerche.com> | 2015-02-22 20:50:34 -0800 |
---|---|---|
committer | Carl Lerche <me@carllerche.com> | 2015-02-22 20:50:34 -0800 |
commit | 88988a31a017ffada1528029c910b56b12ac281b (patch) | |
tree | ac16fc665646ebb83b1277fd8bd972b287ba3f9a /test/sys/test_socket.rs | |
parent | 4059820cbaed9786596bfc8ea136617cac0dc8b0 (diff) | |
download | nix-88988a31a017ffada1528029c910b56b12ac281b.zip |
Remove prefix from SockAddr variants
Diffstat (limited to 'test/sys/test_socket.rs')
-rw-r--r-- | test/sys/test_socket.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/sys/test_socket.rs b/test/sys/test_socket.rs index 4662b7e8..1c80fad9 100644 --- a/test/sys/test_socket.rs +++ b/test/sys/test_socket.rs @@ -10,7 +10,7 @@ pub fn test_inetv4_addr_to_sock_addr() { let addr = actual.to_sock_addr().unwrap(); match addr { - SockAddr::SockIpV4(addr) => { + SockAddr::IpV4(addr) => { assert_eq!(addr.sin_addr.s_addr, Int::from_be(2130706433)); assert_eq!(addr.sin_port, 3000); } @@ -27,7 +27,7 @@ pub fn test_path_to_sock_addr() { let addr = actual.to_sock_addr().unwrap(); match addr { - SockAddr::SockUnix(addr) => { + SockAddr::Unix(addr) => { let expect: &'static [i8] = unsafe { mem::transmute(b"/foo/bar") }; assert_eq!(&addr.sun_path[..8], expect); } |