mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-02-23 18:58:49 +01:00
fix clippy
This commit is contained in:
parent
cd4ba395e4
commit
fa27327db5
@ -30,7 +30,7 @@ impl DatabaseStats {
|
|||||||
///
|
///
|
||||||
/// This function iterates over the whole database and computes the stats.
|
/// This function iterates over the whole database and computes the stats.
|
||||||
/// It is not efficient and should be cached somewhere.
|
/// 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 {
|
let mut database_stats = Self {
|
||||||
number_of_entries: 0,
|
number_of_entries: 0,
|
||||||
total_key_size: 0,
|
total_key_size: 0,
|
||||||
|
@ -406,7 +406,7 @@ impl Index {
|
|||||||
|
|
||||||
/// Returns the stats of the database.
|
/// Returns the stats of the database.
|
||||||
pub fn documents_database_stats(&self, rtxn: &RoTxn<'_>) -> Result<DatabaseStats> {
|
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 */
|
/* primary key */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user