fix clippy

This commit is contained in:
ManyTheFish 2025-02-17 16:41:34 +01:00 committed by Kerollmops
parent 405bbd04c1
commit d25953f322
No known key found for this signature in database
GPG Key ID: F250A4C4E3AE5F5F
2 changed files with 3 additions and 2 deletions

View File

@ -41,7 +41,7 @@ impl DatabaseStats {
/// ///
/// This function is used to update the stats of the database when some keys are modified. /// 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. /// 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<I, K>(
mut stats: Self, mut stats: Self,
database: Database<Bytes, Bytes>, database: Database<Bytes, Bytes>,
before_rtxn: &RoTxn<'_>, before_rtxn: &RoTxn<'_>,

View File

@ -121,7 +121,8 @@ where
Ok(()) Ok(())
} }
pub fn update_index( #[allow(clippy::too_many_arguments)]
pub(super) fn update_index(
index: &Index, index: &Index,
wtxn: &mut RwTxn<'_>, wtxn: &mut RwTxn<'_>,
new_fields_ids_map: FieldIdMapWithMetadata, new_fields_ids_map: FieldIdMapWithMetadata,