chore: clippy fixes and make benches compile again (#1449)

This commit is contained in:
Matthias Seitz
2023-02-18 13:44:06 +01:00
committed by GitHub
parent 1a31a21d31
commit dba6b24bde
16 changed files with 65 additions and 64 deletions

View File

@ -1,9 +1,7 @@
use reth_db::{
cursor::{DbCursorRO, DbCursorRW},
database::Database,
mdbx::{test_utils::create_test_db_with_path, EnvKind, WriteMap},
table::*,
tables::*,
transaction::{DbTx, DbTxMut},
};
use std::path::Path;
@ -44,6 +42,7 @@ where
}
/// Sets up a clear database at `bench_db_path`.
#[allow(clippy::ptr_arg)]
fn set_up_db<T>(
bench_db_path: &Path,
pair: &Vec<(<T as Table>::Key, bytes::Bytes, <T as Table>::Value, bytes::Bytes)>,