@@ -287,7 +287,10 @@ impl<'a> SearchQuery<'a> {
287287 self . filter = Some ( filter) ;
288288 self
289289 }
290- pub fn with_facets < ' b > ( & ' b mut self , facets : Selectors < & ' a [ & ' a str ] > ) -> & ' b mut SearchQuery < ' a > {
290+ pub fn with_facets < ' b > (
291+ & ' b mut self ,
292+ facets : Selectors < & ' a [ & ' a str ] > ,
293+ ) -> & ' b mut SearchQuery < ' a > {
291294 self . facets = Some ( facets) ;
292295 self
293296 }
@@ -778,7 +781,7 @@ mod tests {
778781 async fn test_matching_strategy_all ( client : Client , index : Index ) -> Result < ( ) , Error > {
779782 setup_test_index ( & client, & index) . await ?;
780783
781- let results = Query :: new ( & index)
784+ let results = SearchQuery :: new ( & index)
782785 . with_query ( "Harry Styles" )
783786 . with_matching_strategy ( MatchingStrategies :: ALL )
784787 . execute :: < Document > ( )
@@ -793,7 +796,7 @@ mod tests {
793796 async fn test_matching_strategy_left ( client : Client , index : Index ) -> Result < ( ) , Error > {
794797 setup_test_index ( & client, & index) . await ?;
795798
796- let results = Query :: new ( & index)
799+ let results = SearchQuery :: new ( & index)
797800 . with_query ( "Harry Styles" )
798801 . with_matching_strategy ( MatchingStrategies :: LAST )
799802 . execute :: < Document > ( )
0 commit comments