diff --git a/crates/milli/src/database_stats.rs b/crates/milli/src/database_stats.rs index cd7adab4d..d97dc13ba 100644 --- a/crates/milli/src/database_stats.rs +++ b/crates/milli/src/database_stats.rs @@ -41,7 +41,7 @@ impl DatabaseStats { /// /// This function is used to update the stats of the database when some keys are modified. /// It is more efficient than the `new` function because it does not iterate over the whole database but only the modified keys comparing the before and after states. - pub(crate) fn recompute<'a, I, K>( + pub(crate) fn recompute( mut stats: Self, database: Database, before_rtxn: &RoTxn<'_>, diff --git a/crates/milli/src/update/new/indexer/write.rs b/crates/milli/src/update/new/indexer/write.rs index c4c046360..16b129c9f 100644 --- a/crates/milli/src/update/new/indexer/write.rs +++ b/crates/milli/src/update/new/indexer/write.rs @@ -113,6 +113,7 @@ where Ok(()) } +#[allow(clippy::too_many_arguments)] pub(super) fn update_index( index: &Index, wtxn: &mut RwTxn<'_>,