mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-24 15:01:53 +08:00
Remove a redundant "unsafe" specifier
This commit is contained in:
parent
0a1bf01574
commit
7ac62bbca4
@ -1348,10 +1348,8 @@ 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Returns the fd of an opened temporary file, or None on failure.
|
||||
|
Loading…
x
Reference in New Issue
Block a user