mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-04 15:51:15 -03:00
Remove a redundant "unsafe" specifier
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user