diff --git a/benchmarks/benches/utils.rs b/benchmarks/benches/utils.rs index c2119a4bb..b848560ad 100644 --- a/benchmarks/benches/utils.rs +++ b/benchmarks/benches/utils.rs @@ -141,8 +141,8 @@ pub fn run_benches(c: &mut criterion::Criterion, confs: &[Conf]) { } pub fn documents_from(filename: &str, filetype: &str) -> DocumentsBatchReader { - let reader = - File::open(filename).unwrap_or_else(|_| panic!("could not find the dataset in: {}", filename)); + let reader = File::open(filename) + .unwrap_or_else(|_| panic!("could not find the dataset in: {}", filename)); let reader = BufReader::new(reader); let documents = match filetype { "csv" => documents_from_csv(reader).unwrap(), diff --git a/milli/src/search/criteria/typo.rs b/milli/src/search/criteria/typo.rs index 1792e4579..911d46e3e 100644 --- a/milli/src/search/criteria/typo.rs +++ b/milli/src/search/criteria/typo.rs @@ -423,13 +423,8 @@ mod test { wdcache: &mut WordDerivationsCache::new(), excluded_candidates: &RoaringBitmap::new(), }; - let parent = Initial::::new( - &context, - query_tree, - Some(facet_candidates), - false, - None, - ); + let parent = + Initial::::new(&context, query_tree, Some(facet_candidates), false, None); let criteria = Typo::new(&context, Box::new(parent)); let result = display_criteria(criteria, criterion_parameters);