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(); }