mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 07:04:29 +00:00
Remove a redundant "unsafe" specifier
This commit is contained in:
parent
0a1bf01574
commit
7ac62bbca4
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue