summaryrefslogtreecommitdiff
path: root/test/sys/test_socket.rs
diff options
context:
space:
mode:
authorCarl Lerche <me@carllerche.com>2015-03-25 16:39:51 -0700
committerCarl Lerche <me@carllerche.com>2015-03-25 16:39:51 -0700
commitbf3d7c49396e267b927a1523402435d07472032c (patch)
tree73547bfff85df5d001aca98172e4031be4292853 /test/sys/test_socket.rs
parentc07fb83d397d500ffbd39ac57c13daa8c1e73693 (diff)
downloadnix-bf3d7c49396e267b927a1523402435d07472032c.zip
Tweak conversion in test
Diffstat (limited to 'test/sys/test_socket.rs')
-rw-r--r--test/sys/test_socket.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sys/test_socket.rs b/test/sys/test_socket.rs
index 3d04ac0a..f2ebfe69 100644
--- a/test/sys/test_socket.rs
+++ b/test/sys/test_socket.rs
@@ -30,7 +30,7 @@ pub fn test_path_to_sock_addr() {
let actual = Path::new("/foo/bar");
let addr = UnixAddr::new(actual).unwrap();
- let expect: &'static [i8] = unsafe { mem::transmute(b"/foo/bar".as_ref()) };
+ let expect: &'static [i8] = unsafe { mem::transmute(&b"/foo/bar"[..]) };
assert_eq!(&addr.0.sun_path[..8], expect);
assert_eq!(addr.path(), actual);