mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-11 07:25:09 -05:00
chore: make clippy happy (#6837)
This commit is contained in:
@@ -73,10 +73,11 @@ pub(crate) fn generate_vectors(mut tables: Vec<String>) -> Result<()> {
|
||||
}
|
||||
|
||||
/// Generates test-vectors for normal tables. Keys are sorted and not repeated.
|
||||
fn generate_table_vector<T: Table>(runner: &mut TestRunner, per_table: usize) -> Result<()>
|
||||
fn generate_table_vector<T>(runner: &mut TestRunner, per_table: usize) -> Result<()>
|
||||
where
|
||||
T::Key: Arbitrary + serde::Serialize + Ord + std::hash::Hash,
|
||||
T::Value: Arbitrary + serde::Serialize,
|
||||
T: Table,
|
||||
{
|
||||
let mut rows = vec![];
|
||||
let mut seen_keys = HashSet::new();
|
||||
@@ -109,9 +110,9 @@ where
|
||||
|
||||
/// Generates test-vectors for DUPSORT tables. Each key has multiple (subkey, value). Keys and
|
||||
/// subkeys are sorted.
|
||||
fn generate_dupsort_vector<T: Table>(runner: &mut TestRunner, per_table: usize) -> Result<()>
|
||||
fn generate_dupsort_vector<T>(runner: &mut TestRunner, per_table: usize) -> Result<()>
|
||||
where
|
||||
T: DupSort,
|
||||
T: Table + DupSort,
|
||||
T::Key: Arbitrary + serde::Serialize + Ord + std::hash::Hash,
|
||||
T::Value: Arbitrary + serde::Serialize + Ord,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user