fix clippy part1

This commit is contained in:
Irevoire 2022-10-26 15:14:46 +02:00 committed by Clément Renault
parent 2ba5e3b519
commit 8ec3681cf8
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
6 changed files with 16 additions and 16 deletions

View file

@ -614,7 +614,7 @@ impl IndexScheduler {
fs::create_dir_all(&dst)?;
// TODO We can't use the open_auth_store_env function here but we should
let auth = milli::heed::EnvOpenOptions::new()
.map_size(1 * 1024 * 1024 * 1024) // 1 GiB
.map_size(1024 * 1024 * 1024) // 1 GiB
.max_dbs(2)
.open(&self.auth_path)?;
auth.copy_to_path(dst.join("data.mdb"), CompactionOption::Enabled)?;

View file

@ -2643,7 +2643,7 @@ mod tests {
}}"#,
i, i
);
let allow_index_creation = if i % 2 == 0 { false } else { true };
let allow_index_creation = i % 2 != 0;
let (uuid, mut file) = index_scheduler.create_update_file_with_uuid(i).unwrap();
let documents_count = meilisearch_types::document_formats::read_json(
@ -2703,7 +2703,7 @@ mod tests {
}}"#,
i, i
);
let allow_index_creation = if i % 2 == 0 { false } else { true };
let allow_index_creation = i % 2 != 0;
let (uuid, mut file) = index_scheduler.create_update_file_with_uuid(i).unwrap();
let documents_count = meilisearch_types::document_formats::read_json(