Skip to content

Commit b6b5c37

Browse files
committed
style: fix formatting to satisfy cargo fmt
1 parent 8f654a1 commit b6b5c37

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

bin/trin-execution/src/storage/execution_position.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ impl ExecutionPosition {
2828
let txn = db.begin_read()?;
2929
let table = txn.open_table(TABLE)?;
3030
match table.get(EXECUTION_POSITION_DB_KEY.as_slice())? {
31-
Some(value) => Ok(Decodable::decode(&mut value.value().as_ref())?),
31+
Some(value) => Ok(Decodable::decode(&mut value.value())?),
3232
None => Ok(Self::default()),
3333
}
3434
}

bin/trin-execution/src/storage/utils.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use redb::{Database as ReDB, Error};
44
use tracing::info;
55

66
/// Helper function for opening a ReDB database at the specified path.
7+
#[allow(clippy::result_large_err)]
78
pub fn setup_redb(path: &Path) -> Result<ReDB, Error> {
89
let redb_path = path.join("redb");
910
info!(path = %redb_path.display(), "Setting up ReDB");

0 commit comments

Comments
 (0)