mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-11-04 01:46:28 +00:00 
			
		
		
		
	cargo fmt
This commit is contained in:
		@@ -370,7 +370,7 @@ mod test {
 | 
			
		||||
 | 
			
		||||
        let parent = Initial::new(query_tree, facet_candidates);
 | 
			
		||||
        let criteria = Typo::new(&context, Box::new(parent));
 | 
			
		||||
        
 | 
			
		||||
 | 
			
		||||
        let result = display_criteria(criteria, criterion_parameters);
 | 
			
		||||
        insta::assert_snapshot!(result, @r###"
 | 
			
		||||
        CriterionResult { query_tree: None, candidates: None, filtered_candidates: None, bucket_candidates: None }
 | 
			
		||||
 
 | 
			
		||||
@@ -490,12 +490,14 @@ impl<'a> From<FilterCondition<'a>> for Filter<'a> {
 | 
			
		||||
 | 
			
		||||
#[cfg(test)]
 | 
			
		||||
mod tests {
 | 
			
		||||
    use crate::index::tests::TempIndex;
 | 
			
		||||
    use crate::Filter;
 | 
			
		||||
    use std::fmt::Write;
 | 
			
		||||
 | 
			
		||||
    use big_s::S;
 | 
			
		||||
    use either::Either;
 | 
			
		||||
    use maplit::hashset;
 | 
			
		||||
    use std::fmt::Write;
 | 
			
		||||
 | 
			
		||||
    use crate::index::tests::TempIndex;
 | 
			
		||||
    use crate::Filter;
 | 
			
		||||
 | 
			
		||||
    #[test]
 | 
			
		||||
    fn empty_db() {
 | 
			
		||||
 
 | 
			
		||||
@@ -574,10 +574,10 @@ mod tests {
 | 
			
		||||
        let mut matcher = builder.build(text);
 | 
			
		||||
        // no crop should return complete text with highlighted matches.
 | 
			
		||||
        insta::assert_snapshot!(
 | 
			
		||||
            matcher.format(format_options), 
 | 
			
		||||
            matcher.format(format_options),
 | 
			
		||||
            @"Natalie risk her future to build a <em>world</em> with <em>the</em> boy she loves. Emily Henry: <em>The</em> Love That <em>Split</em> <em>The</em> <em>World</em>."
 | 
			
		||||
        );
 | 
			
		||||
        
 | 
			
		||||
 | 
			
		||||
        // Text containing some matches.
 | 
			
		||||
        let text = "Natalie risk her future to build a world with the boy she loves.";
 | 
			
		||||
        let mut matcher = builder.build(text);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user