From 042404b4772e33a2f064e81859eb24a610bca33d Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Wed, 1 Oct 2025 15:16:05 -0600 Subject: [PATCH] Suppress a Clippy false positive --- src/fcntl.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/fcntl.rs b/src/fcntl.rs index 6504c1dcf2..4b439d03ed 100644 --- a/src/fcntl.rs +++ b/src/fcntl.rs @@ -1038,6 +1038,7 @@ pub unsafe trait Flockable: std::os::fd::AsRawFd {} pub struct Flock(T); #[cfg(not(any(target_os = "redox", target_os = "solaris")))] +#[allow(clippy::unnecessary_unwrap)] // https://github.com/rust-lang/rust-clippy/issues/15744 impl Drop for Flock { fn drop(&mut self) { let res = Errno::result(unsafe { libc::flock(self.0.as_raw_fd(), libc::LOCK_UN) });