From 0d5ea0b16dae98c13600d54889d065c2201fd3b6 Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Wed, 25 Mar 2015 10:52:05 -0700 Subject: Track Rust master --- test/sys/test_socket.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/sys/test_socket.rs') diff --git a/test/sys/test_socket.rs b/test/sys/test_socket.rs index 97ee889d..3d04ac0a 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_slice()) }; + let expect: &'static [i8] = unsafe { mem::transmute(b"/foo/bar".as_ref()) }; assert_eq!(&addr.0.sun_path[..8], expect); assert_eq!(addr.path(), actual); -- cgit v1.2.3