mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: make clippy happy (#6666)
This commit is contained in:
@ -5,10 +5,7 @@ use crate::{
|
||||
};
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::{
|
||||
fmt::Debug,
|
||||
marker::{Send, Sync},
|
||||
};
|
||||
use std::fmt::Debug;
|
||||
|
||||
/// Trait that will transform the data to be saved in the DB in a (ideally) compressed format
|
||||
pub trait Compress: Send + Sync + Sized + Debug {
|
||||
|
||||
@ -12,7 +12,7 @@ use crate::{
|
||||
DatabaseError,
|
||||
};
|
||||
use reth_interfaces::db::{DatabaseErrorInfo, DatabaseWriteError, DatabaseWriteOperation};
|
||||
use reth_libmdbx::{self, Error as MDBXError, TransactionKind, WriteFlags, RO, RW};
|
||||
use reth_libmdbx::{Error as MDBXError, TransactionKind, WriteFlags, RO, RW};
|
||||
use std::{borrow::Cow, collections::Bound, marker::PhantomData, ops::RangeBounds, sync::Arc};
|
||||
|
||||
/// Read only Cursor.
|
||||
|
||||
@ -356,7 +356,6 @@ mod tests {
|
||||
use crate::{
|
||||
abstraction::table::{Encode, Table},
|
||||
cursor::{DbCursorRO, DbCursorRW, DbDupCursorRO, DbDupCursorRW, ReverseWalker, Walker},
|
||||
database::Database,
|
||||
models::{AccountBeforeTx, ShardedKey},
|
||||
tables::{AccountHistory, CanonicalHeaders, Headers, PlainAccountState, PlainStorageState},
|
||||
test_utils::*,
|
||||
@ -366,7 +365,7 @@ mod tests {
|
||||
use reth_interfaces::db::{DatabaseWriteError, DatabaseWriteOperation};
|
||||
use reth_libmdbx::Error;
|
||||
use reth_primitives::{Account, Address, Header, IntegerList, StorageEntry, B256, U256};
|
||||
use std::{path::Path, str::FromStr, sync::Arc};
|
||||
use std::str::FromStr;
|
||||
use tempfile::TempDir;
|
||||
|
||||
/// Create database for testing
|
||||
|
||||
Reference in New Issue
Block a user