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 2378f12 commit 2d60044Copy full SHA for 2d60044
src/sys/socket/addr.rs
@@ -767,6 +767,8 @@ impl SockaddrLike for UnixAddr {
767
}
768
769
unsafe fn set_length(&mut self, new_length: usize) -> std::result::Result<(), SocketAddressLengthNotDynamic> {
770
+ // `new_length` is only used on some platforms, so it must be provided even when not used
771
+ #![allow(unused_variables)]
772
cfg_if! {
773
if #[cfg(any(target_os = "android",
774
target_os = "fuchsia",
0 commit comments