From 4e833f2e3cc6bbafa986b9b94a1869b0b0ca455a Mon Sep 17 00:00:00 2001 From: Douglas Dwyer Date: Sat, 21 Oct 2023 14:48:08 -0400 Subject: [PATCH] Remove useless conversion --- src/tree_store/page_store/file_backend/unix.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tree_store/page_store/file_backend/unix.rs b/src/tree_store/page_store/file_backend/unix.rs index e63d0224..0d539f42 100644 --- a/src/tree_store/page_store/file_backend/unix.rs +++ b/src/tree_store/page_store/file_backend/unix.rs @@ -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(()) }