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 b85b05105..723e018a1 100644 --- a/crates/milli/src/update/new/indexer/write.rs +++ b/crates/milli/src/update/new/indexer/write.rs @@ -121,7 +121,8 @@ where Ok(()) } -pub fn update_index( +#[allow(clippy::too_many_arguments)] +pub(super) fn update_index( index: &Index, wtxn: &mut RwTxn<'_>, new_fields_ids_map: FieldIdMapWithMetadata,