mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
fix clippy part1
This commit is contained in:
parent
2ba5e3b519
commit
8ec3681cf8
6 changed files with 16 additions and 16 deletions
|
@ -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)?;
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue