We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbcce3d commit ba47f34Copy full SHA for ba47f34
src/fcntl.rs
@@ -1038,6 +1038,7 @@ pub unsafe trait Flockable: std::os::fd::AsRawFd {}
1038
pub struct Flock<T: Flockable>(T);
1039
1040
#[cfg(not(any(target_os = "redox", target_os = "solaris")))]
1041
+#[allow(clippy::unnecessary_unwrap)] // https://github.com/rust-lang/rust-clippy/issues/15744
1042
impl<T: Flockable> Drop for Flock<T> {
1043
fn drop(&mut self) {
1044
let res = Errno::result(unsafe { libc::flock(self.0.as_raw_fd(), libc::LOCK_UN) });
0 commit comments