Skip to content

Commit

Permalink
Remove useless conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
DouglasDwyer committed Oct 21, 2023
1 parent c670b1d commit 4e833f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tree_store/page_store/file_backend/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ impl StorageBackend for FileBackend {
if eventual {
let code = unsafe { libc::fcntl(self.file.as_raw_fd(), libc::F_BARRIERFSYNC) };
if code == -1 {
Err(io::Error::last_os_error().into())
Err(io::Error::last_os_error())
} else {
Ok(())
}
Expand Down

0 comments on commit 4e833f2

Please sign in to comment.