Skip to content

Commit 2d9cc44

Browse files
committed
Clippy cleanup: dangerous_implicit_autorefs
1 parent 989291d commit 2d9cc44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/sys/test_socket.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ pub fn test_path_to_sock_addr() {
200200

201201
let expect: &[c_char] =
202202
unsafe { slice::from_raw_parts(path.as_ptr().cast(), path.len()) };
203-
assert_eq!(unsafe { &(*addr.as_ptr()).sun_path[..8] }, expect);
203+
assert_eq!(unsafe { &(&(*addr.as_ptr()).sun_path)[..8] }, expect);
204204

205205
assert_eq!(addr.path(), Some(actual));
206206
}

0 commit comments

Comments
 (0)