chore: make clippy happy (#6837)

This commit is contained in:
Dan Cline
2024-02-28 00:32:03 -05:00
committed by GitHub
parent e0c220efef
commit 27f1496daa
6 changed files with 14 additions and 13 deletions

View File

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