From 7ac62bbca43d4f53d09beba475cdea88837977ab Mon Sep 17 00:00:00 2001 From: Peter Ammon Date: Sat, 14 Sep 2024 13:15:21 -0700 Subject: [PATCH] Remove a redundant "unsafe" specifier --- src/history.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 @@ impl HistoryImpl { /// /// `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); } }