From 1d507c84b2143bf0c04dc7a0a26148fa742d737d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Tue, 17 Jan 2023 18:02:55 +0100 Subject: [PATCH] Fix the formatting --- benchmarks/benches/utils.rs | 4 ++-- milli/src/search/criteria/typo.rs | 9 ++------- 2 files changed, 4 insertions(+), 9 deletions(-) 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);