mirror of
https://github.com/jiangcuo/nix.git
synced 2026-08-10 04:41:54 +00:00
Fix lint
This commit is contained in:
parent
2378f12dd5
commit
2d60044196
@ -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",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user