From a7d00e820b2852d24fb2202fb05a6acc8e620f8b Mon Sep 17 00:00:00 2001 From: Christopher Berner Date: Sun, 22 Oct 2023 19:54:44 -0700 Subject: [PATCH] Replace redb::Result with std::result::Result in StorageBackend trait --- src/db.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/db.rs b/src/db.rs index a5b7c44d..81b00092 100644 --- a/src/db.rs +++ b/src/db.rs @@ -33,19 +33,19 @@ use log::{info, warn}; /// Implements persistent storage for a database. pub trait StorageBackend: 'static + Debug + Send + Sync { /// Gets the current length of the storage. - fn len(&self) -> Result; + fn len(&self) -> std::result::Result; /// Reads the specified array of bytes from the storage. - fn read(&self, offset: u64, len: usize) -> Result, io::Error>; + fn read(&self, offset: u64, len: usize) -> std::result::Result, io::Error>; /// Sets the length of the storage. - fn set_len(&self, len: u64) -> Result<(), io::Error>; + fn set_len(&self, len: u64) -> std::result::Result<(), io::Error>; /// Syncs all buffered data with the persistent storage. - fn sync_data(&self, eventual: bool) -> Result<(), io::Error>; + fn sync_data(&self, eventual: bool) -> std::result::Result<(), io::Error>; /// Writes the specified array to the storage. - fn write(&self, offset: u64, data: &[u8]) -> Result<(), io::Error>; + fn write(&self, offset: u64, data: &[u8]) -> std::result::Result<(), io::Error>; } struct AtomicTransactionId {