mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-22 18:17:39 +08:00
Fix the formatting
This commit is contained in:
parent
1b78231e18
commit
1d507c84b2
@ -141,8 +141,8 @@ pub fn run_benches(c: &mut criterion::Criterion, confs: &[Conf]) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn documents_from(filename: &str, filetype: &str) -> DocumentsBatchReader<impl BufRead + Seek> {
|
pub fn documents_from(filename: &str, filetype: &str) -> DocumentsBatchReader<impl BufRead + Seek> {
|
||||||
let reader =
|
let reader = File::open(filename)
|
||||||
File::open(filename).unwrap_or_else(|_| panic!("could not find the dataset in: {}", filename));
|
.unwrap_or_else(|_| panic!("could not find the dataset in: {}", filename));
|
||||||
let reader = BufReader::new(reader);
|
let reader = BufReader::new(reader);
|
||||||
let documents = match filetype {
|
let documents = match filetype {
|
||||||
"csv" => documents_from_csv(reader).unwrap(),
|
"csv" => documents_from_csv(reader).unwrap(),
|
||||||
|
@ -423,13 +423,8 @@ mod test {
|
|||||||
wdcache: &mut WordDerivationsCache::new(),
|
wdcache: &mut WordDerivationsCache::new(),
|
||||||
excluded_candidates: &RoaringBitmap::new(),
|
excluded_candidates: &RoaringBitmap::new(),
|
||||||
};
|
};
|
||||||
let parent = Initial::<NoopDistinct>::new(
|
let parent =
|
||||||
&context,
|
Initial::<NoopDistinct>::new(&context, query_tree, Some(facet_candidates), false, None);
|
||||||
query_tree,
|
|
||||||
Some(facet_candidates),
|
|
||||||
false,
|
|
||||||
None,
|
|
||||||
);
|
|
||||||
let criteria = Typo::new(&context, Box::new(parent));
|
let criteria = Typo::new(&context, Box::new(parent));
|
||||||
|
|
||||||
let result = display_criteria(criteria, criterion_parameters);
|
let result = display_criteria(criteria, criterion_parameters);
|
||||||
|
Loading…
Reference in New Issue
Block a user