Skip to content

Commit ff0fb3d

Browse files
committed
Remove redundant unsafe block
1 parent e5bd9ba commit ff0fb3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sys/socket/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1933,7 +1933,7 @@ unsafe fn read_mhdr<'a, 'i, S>(
19331933
// Ignore errors if this socket address has statically-known length
19341934
//
19351935
// This is to ensure that unix socket addresses have their length set appropriately.
1936-
let _ = unsafe { address.set_length(mhdr.msg_namelen as usize) };
1936+
let _ = address.set_length(mhdr.msg_namelen as usize);
19371937

19381938
RecvMsg {
19391939
bytes: r as usize,

0 commit comments

Comments
 (0)