clippy: --fix

This commit is contained in:
Louis Dureuil
2023-01-31 11:06:43 +01:00
parent 7c9935f96a
commit cbf029f64c
3 changed files with 10 additions and 10 deletions

View File

@ -7,15 +7,15 @@ fn set_stop_words(index: &Index, stop_words: &[&str]) {
let mut wtxn = index.write_txn().unwrap();
let config = IndexerConfig::default();
let mut builder = Settings::new(&mut wtxn, &index, &config);
let stop_words = stop_words.into_iter().map(|s| s.to_string()).collect();
let mut builder = Settings::new(&mut wtxn, index, &config);
let stop_words = stop_words.iter().map(|s| s.to_string()).collect();
builder.set_stop_words(stop_words);
builder.execute(|_| (), || false).unwrap();
wtxn.commit().unwrap();
}
fn test_phrase_search_with_stop_words_given_criteria(criteria: &[Criterion]) {
let index = super::setup_search_index_with_criteria(&criteria);
let index = super::setup_search_index_with_criteria(criteria);
// Add stop_words
set_stop_words(&index, &["a", "an", "the", "of"]);