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,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);
}
}