Skip to content

Commit 2d60044

Browse files
committed
Fix lint
1 parent 2378f12 commit 2d60044

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/sys/socket/addr.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,8 @@ impl SockaddrLike for UnixAddr {
767767
}
768768

769769
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)]
770772
cfg_if! {
771773
if #[cfg(any(target_os = "android",
772774
target_os = "fuchsia",

0 commit comments

Comments
 (0)