Correct clippy lint identified upon rebase

This commit is contained in:
Luke Parker
2024-07-05 04:14:57 -04:00
parent bdf9baa745
commit 5278d5d6e2
3 changed files with 3 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ pub use ::parity_db::{Options, Db as ParityDb};
use crate::*;
#[must_use]
pub struct Transaction<'a>(&'a Arc<ParityDb>, Vec<(u8, Vec<u8>, Option<Vec<u8>>)>);
impl Get for Transaction<'_> {

View File

@@ -7,6 +7,7 @@ use rocksdb::{
use crate::*;
#[must_use]
pub struct Transaction<'a, T: ThreadMode>(
RocksTransaction<'a, OptimisticTransactionDB<T>>,
&'a OptimisticTransactionDB<T>,

View File

@@ -369,7 +369,7 @@ impl<N: Network + 'static> TendermintMachine<N> {
// 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();
}