This commit is contained in:
Jarred Allen 2023-07-17 14:57:11 -07:00
parent 2378f12dd5
commit 2d60044196

View File

@ -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",