diff options
author | Jarred Allen <jarred@moveparallel.com> | 2023-05-22 12:46:01 -0700 |
---|---|---|
committer | Jarred Allen <jarred@moveparallel.com> | 2023-05-22 12:46:01 -0700 |
commit | ff0fb3d18776151d0c8694f564ffb21164d1e17f (patch) | |
tree | e786258a7387bc36b83f7b0eb1d41283dc99796f /src | |
parent | e5bd9ba193fe9e30108e0197d09aa8aa48c95d88 (diff) | |
download | nix-ff0fb3d18776151d0c8694f564ffb21164d1e17f.zip |
Remove redundant `unsafe` block
Diffstat (limited to 'src')
-rw-r--r-- | src/sys/socket/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sys/socket/mod.rs b/src/sys/socket/mod.rs index 6690273b..ffab9741 100644 --- a/src/sys/socket/mod.rs +++ b/src/sys/socket/mod.rs @@ -1933,7 +1933,7 @@ unsafe fn read_mhdr<'a, 'i, S>( // Ignore errors if this socket address has statically-known length // // This is to ensure that unix socket addresses have their length set appropriately. - let _ = unsafe { address.set_length(mhdr.msg_namelen as usize) }; + let _ = address.set_length(mhdr.msg_namelen as usize); RecvMsg { bytes: r as usize, |