From 5278d5d6e2c6d576a48df2c0f6fc6b969fe503a3 Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Fri, 5 Jul 2024 04:14:57 -0400 Subject: [PATCH] Correct clippy lint identified upon rebase --- common/db/src/parity_db.rs | 1 + common/db/src/rocks.rs | 1 + coordinator/tributary/tendermint/src/lib.rs | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/common/db/src/parity_db.rs b/common/db/src/parity_db.rs index 8c913468..9ae345f6 100644 --- a/common/db/src/parity_db.rs +++ b/common/db/src/parity_db.rs @@ -4,6 +4,7 @@ pub use ::parity_db::{Options, Db as ParityDb}; use crate::*; +#[must_use] pub struct Transaction<'a>(&'a Arc, Vec<(u8, Vec, Option>)>); impl Get for Transaction<'_> { diff --git a/common/db/src/rocks.rs b/common/db/src/rocks.rs index 6a724563..1d42d902 100644 --- a/common/db/src/rocks.rs +++ b/common/db/src/rocks.rs @@ -7,6 +7,7 @@ use rocksdb::{ use crate::*; +#[must_use] pub struct Transaction<'a, T: ThreadMode>( RocksTransaction<'a, OptimisticTransactionDB>, &'a OptimisticTransactionDB, diff --git a/coordinator/tributary/tendermint/src/lib.rs b/coordinator/tributary/tendermint/src/lib.rs index 1a74083b..c676b96a 100644 --- a/coordinator/tributary/tendermint/src/lib.rs +++ b/coordinator/tributary/tendermint/src/lib.rs @@ -369,7 +369,7 @@ impl TendermintMachine { // Clear the message tape { let mut txn = self.db.txn(); - txn.del(&message_tape_key(self.genesis)); + txn.del(message_tape_key(self.genesis)); txn.commit(); }