Skip to content

Commit

Permalink
Correct clippy lint identified upon rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
kayabaNerve committed Jul 5, 2024
1 parent bdf9baa commit 5278d5d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions common/db/src/parity_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<'_> {
Expand Down
1 change: 1 addition & 0 deletions common/db/src/rocks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use rocksdb::{

use crate::*;

#[must_use]
pub struct Transaction<'a, T: ThreadMode>(
RocksTransaction<'a, OptimisticTransactionDB<T>>,
&'a OptimisticTransactionDB<T>,
Expand Down
2 changes: 1 addition & 1 deletion coordinator/tributary/tendermint/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 5278d5d

Please sign in to comment.