mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-11 13:39:25 +00:00
Correct clippy lint identified upon rebase
This commit is contained in:
@@ -4,6 +4,7 @@ pub use ::parity_db::{Options, Db as ParityDb};
|
|||||||
|
|
||||||
use crate::*;
|
use crate::*;
|
||||||
|
|
||||||
|
#[must_use]
|
||||||
pub struct Transaction<'a>(&'a Arc<ParityDb>, Vec<(u8, Vec<u8>, Option<Vec<u8>>)>);
|
pub struct Transaction<'a>(&'a Arc<ParityDb>, Vec<(u8, Vec<u8>, Option<Vec<u8>>)>);
|
||||||
|
|
||||||
impl Get for Transaction<'_> {
|
impl Get for Transaction<'_> {
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ use rocksdb::{
|
|||||||
|
|
||||||
use crate::*;
|
use crate::*;
|
||||||
|
|
||||||
|
#[must_use]
|
||||||
pub struct Transaction<'a, T: ThreadMode>(
|
pub struct Transaction<'a, T: ThreadMode>(
|
||||||
RocksTransaction<'a, OptimisticTransactionDB<T>>,
|
RocksTransaction<'a, OptimisticTransactionDB<T>>,
|
||||||
&'a OptimisticTransactionDB<T>,
|
&'a OptimisticTransactionDB<T>,
|
||||||
|
|||||||
@@ -369,7 +369,7 @@ impl<N: Network + 'static> TendermintMachine<N> {
|
|||||||
// Clear the message tape
|
// Clear the message tape
|
||||||
{
|
{
|
||||||
let mut txn = self.db.txn();
|
let mut txn = self.db.txn();
|
||||||
txn.del(&message_tape_key(self.genesis));
|
txn.del(message_tape_key(self.genesis));
|
||||||
txn.commit();
|
txn.commit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user