Apply GitHub suggestions

This commit is contained in:
Clément Renault 2022-02-22 17:39:24 +01:00 committed by Kerollmops
parent a820aa11e6
commit acfc96525c
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4

View File

@ -116,7 +116,7 @@ fn indexing_songs_in_three_batches_default(c: &mut Criterion) {
builder.execute(|_| ()).unwrap(); builder.execute(|_| ()).unwrap();
// We index only one half of the dataset in the setup part // We index only one half of the dataset in the setup part
// as we don't care about the time it take. // as we don't care about the time it takes.
let config = IndexerConfig::default(); let config = IndexerConfig::default();
let indexing_config = IndexDocumentsConfig::default(); let indexing_config = IndexDocumentsConfig::default();
let mut builder = let mut builder =
@ -318,7 +318,7 @@ fn indexing_wiki_in_three_batches(c: &mut Criterion) {
builder.execute(|_| ()).unwrap(); builder.execute(|_| ()).unwrap();
// We index only one half of the dataset in the setup part // We index only one half of the dataset in the setup part
// as we don't care about the time it take. // as we don't care about the time it takes.
let config = IndexerConfig::default(); let config = IndexerConfig::default();
let indexing_config = let indexing_config =
IndexDocumentsConfig { autogenerate_docids: true, ..Default::default() }; IndexDocumentsConfig { autogenerate_docids: true, ..Default::default() };
@ -443,7 +443,7 @@ fn indexing_movies_in_three_batches(c: &mut Criterion) {
builder.execute(|_| ()).unwrap(); builder.execute(|_| ()).unwrap();
// We index only one half of the dataset in the setup part // We index only one half of the dataset in the setup part
// as we don't care about the time it take. // as we don't care about the time it takes.
let config = IndexerConfig::default(); let config = IndexerConfig::default();
let indexing_config = IndexDocumentsConfig::default(); let indexing_config = IndexDocumentsConfig::default();
let mut builder = let mut builder =