We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 989291d commit 2d9cc44Copy full SHA for 2d9cc44
test/sys/test_socket.rs
@@ -200,7 +200,7 @@ pub fn test_path_to_sock_addr() {
200
201
let expect: &[c_char] =
202
unsafe { slice::from_raw_parts(path.as_ptr().cast(), path.len()) };
203
- assert_eq!(unsafe { &(*addr.as_ptr()).sun_path[..8] }, expect);
+ assert_eq!(unsafe { &(&(*addr.as_ptr()).sun_path)[..8] }, expect);
204
205
assert_eq!(addr.path(), Some(actual));
206
}
0 commit comments