Remove a redundant "unsafe" specifier

This commit is contained in:
Peter Ammon 2024-09-14 13:15:21 -07:00
parent 0a1bf01574
commit 7ac62bbca4
No known key found for this signature in database

View File

@ -1348,10 +1348,8 @@ impl HistoryImpl {
/// ///
/// `fd` must be a valid argument to `flock(2)` with `LOCK_UN`. /// `fd` must be a valid argument to `flock(2)` with `LOCK_UN`.
unsafe fn unlock_file(file: &mut File) { unsafe fn unlock_file(file: &mut File) {
unsafe {
libc::flock(file.as_raw_fd(), LOCK_UN); libc::flock(file.as_raw_fd(), LOCK_UN);
} }
}
} }
// Returns the fd of an opened temporary file, or None on failure. // Returns the fd of an opened temporary file, or None on failure.