chore: make clippy happy (#6666)

This commit is contained in:
Dan Cline
2024-02-19 01:31:47 -05:00
committed by GitHub
parent 79f1fa3c10
commit 79452eadaf
86 changed files with 106 additions and 241 deletions

View File

@ -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 {

View File

@ -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.

View File

@ -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