Apply suggestions from code review

Co-authored-by: Clément Renault <clement@meilisearch.com>
This commit is contained in:
Tamo 2022-11-15 17:53:23 +01:00 committed by GitHub
parent 0fced6f270
commit 9327db3e91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -251,7 +251,7 @@ impl From<Opt> for Infos {
scheduler_options,
config_file_path,
#[cfg(all(not(debug_assertions), feature = "analytics"))]
no_analytics: _,
no_analytics: _,
} = options;
let SchedulerConfig { disable_auto_batching } = scheduler_options;
@ -263,7 +263,7 @@ impl From<Opt> for Infos {
} = indexer_options;
// We're going to override every sensible information.
// We consider an information as sensible if it contains a path, an address or a key.
// We consider information sensible if it contains a path, an address, or a key.
Self {
env,
db_path: db_path != PathBuf::from("./data.ms"),