Skip to content

Commit 03b448d

Browse files
authored
Suppress a Clippy false positive (#2682)
1 parent e1e630f commit 03b448d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/fcntl.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,6 +1038,7 @@ pub unsafe trait Flockable: std::os::fd::AsRawFd {}
10381038
pub struct Flock<T: Flockable>(T);
10391039

10401040
#[cfg(not(any(target_os = "redox", target_os = "solaris")))]
1041+
#[allow(clippy::unnecessary_unwrap)] // https://github.com/rust-lang/rust-clippy/issues/15744
10411042
impl<T: Flockable> Drop for Flock<T> {
10421043
fn drop(&mut self) {
10431044
let res = Errno::result(unsafe { libc::flock(self.0.as_raw_fd(), libc::LOCK_UN) });

0 commit comments

Comments
 (0)