From fa27327db5bb366fa34cf3050514ff0d2e061cc9 Mon Sep 17 00:00:00 2001 From: ManyTheFish Date: Tue, 11 Feb 2025 10:15:31 +0100 Subject: [PATCH] fix clippy --- crates/milli/src/database_stats.rs | 2 +- crates/milli/src/index.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/milli/src/database_stats.rs b/crates/milli/src/database_stats.rs index a823bb26d..099687965 100644 --- a/crates/milli/src/database_stats.rs +++ b/crates/milli/src/database_stats.rs @@ -30,7 +30,7 @@ impl DatabaseStats { /// /// This function iterates over the whole database and computes the stats. /// It is not efficient and should be cached somewhere. - pub(crate) fn new<'a>(database: Database, rtxn: &RoTxn<'a>) -> Result { + pub(crate) fn new(database: Database, rtxn: &RoTxn<'_>) -> Result { let mut database_stats = Self { number_of_entries: 0, total_key_size: 0, diff --git a/crates/milli/src/index.rs b/crates/milli/src/index.rs index 6179e117b..11e0ff1f9 100644 --- a/crates/milli/src/index.rs +++ b/crates/milli/src/index.rs @@ -406,7 +406,7 @@ impl Index { /// Returns the stats of the database. pub fn documents_database_stats(&self, rtxn: &RoTxn<'_>) -> Result { - Ok(DatabaseStats::new(self.documents.remap_types::(), rtxn)?) + DatabaseStats::new(self.documents.remap_types::(), rtxn) } /* primary key */