diff options
Diffstat (limited to 'src/sys/socket')
-rw-r--r-- | src/sys/socket/addr.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sys/socket/addr.rs b/src/sys/socket/addr.rs index 5ec2fb5b..1d86e756 100644 --- a/src/sys/socket/addr.rs +++ b/src/sys/socket/addr.rs @@ -767,6 +767,8 @@ impl SockaddrLike for UnixAddr { } unsafe fn set_length(&mut self, new_length: usize) -> std::result::Result<(), SocketAddressLengthNotDynamic> { + // `new_length` is only used on some platforms, so it must be provided even when not used + #![allow(unused_variables)] cfg_if! { if #[cfg(any(target_os = "android", target_os = "fuchsia", |