diff options
author | Carl Lerche <me@carllerche.com> | 2015-03-25 16:39:51 -0700 |
---|---|---|
committer | Carl Lerche <me@carllerche.com> | 2015-03-25 16:39:51 -0700 |
commit | bf3d7c49396e267b927a1523402435d07472032c (patch) | |
tree | 73547bfff85df5d001aca98172e4031be4292853 /test/sys/test_socket.rs | |
parent | c07fb83d397d500ffbd39ac57c13daa8c1e73693 (diff) | |
download | nix-bf3d7c49396e267b927a1523402435d07472032c.zip |
Tweak conversion in test
Diffstat (limited to 'test/sys/test_socket.rs')
-rw-r--r-- | test/sys/test_socket.rs | 2 |
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); |