fix clippy

This commit is contained in:
ManyTheFish 2025-02-11 10:15:31 +01:00
parent cd4ba395e4
commit fa27327db5
2 changed files with 2 additions and 2 deletions

View File

@ -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<Bytes, Bytes>, rtxn: &RoTxn<'a>) -> Result<Self> {
pub(crate) fn new(database: Database<Bytes, Bytes>, rtxn: &RoTxn<'_>) -> Result<Self> {
let mut database_stats = Self {
number_of_entries: 0,
total_key_size: 0,

View File

@ -406,7 +406,7 @@ impl Index {
/// Returns the stats of the database.
pub fn documents_database_stats(&self, rtxn: &RoTxn<'_>) -> Result<DatabaseStats> {
Ok(DatabaseStats::new(self.documents.remap_types::<Bytes, Bytes>(), rtxn)?)
DatabaseStats::new(self.documents.remap_types::<Bytes, Bytes>(), rtxn)
}
/* primary key */