diff --git a/src/history.rs b/src/history.rs index 3ccc10dd8..1d098cd52 100644 --- a/src/history.rs +++ b/src/history.rs @@ -1348,9 +1348,7 @@ unsafe fn maybe_lock_file(file: &mut File, lock_type: libc::c_int) -> bool { /// /// `fd` must be a valid argument to `flock(2)` with `LOCK_UN`. unsafe fn unlock_file(file: &mut File) { - unsafe { - libc::flock(file.as_raw_fd(), LOCK_UN); - } + libc::flock(file.as_raw_fd(), LOCK_UN); } }