@@ -94,7 +94,10 @@ impl TerminatingFilter {
9494 }
9595
9696 fn hits ( & self ) -> Vec < u32 > {
97- self . hits . lock ( ) . expect ( "mutex should not be poisoned" ) . clone ( )
97+ self . hits
98+ . lock ( )
99+ . expect ( "mutex should not be poisoned" )
100+ . clone ( )
98101 }
99102}
100103
@@ -141,7 +144,11 @@ impl CallbackFilter {
141144 }
142145
143146 fn hits ( & self ) -> Vec < u32 > {
144- self . metrics . lock ( ) . expect ( "mutex should not be poisoned" ) . visited_ids . clone ( )
147+ self . metrics
148+ . lock ( )
149+ . expect ( "mutex should not be poisoned" )
150+ . visited_ids
151+ . clone ( )
145152 }
146153}
147154
@@ -345,8 +352,14 @@ fn distance_adjustment_affects_ranking() {
345352 ) )
346353 . unwrap ( ) ;
347354
348- assert ! ( baseline_stats. result_count > 0 , "baseline should have results" ) ;
349- assert ! ( adjusted_stats. result_count > 0 , "adjusted should have results" ) ;
355+ assert ! (
356+ baseline_stats. result_count > 0 ,
357+ "baseline should have results"
358+ ) ;
359+ assert ! (
360+ adjusted_stats. result_count > 0 ,
361+ "adjusted should have results"
362+ ) ;
350363
351364 let boosted_in_baseline = baseline_ids
352365 . iter ( )
@@ -362,8 +375,7 @@ fn distance_adjustment_affects_ranking() {
362375 boosted_in_adjusted. is_some( ) ,
363376 "boosted point should appear in adjusted results when visited"
364377 ) ;
365- if let ( Some ( baseline_pos) , Some ( adjusted_pos) ) =
366- ( boosted_in_baseline, boosted_in_adjusted)
378+ if let ( Some ( baseline_pos) , Some ( adjusted_pos) ) = ( boosted_in_baseline, boosted_in_adjusted)
367379 {
368380 assert ! (
369381 adjusted_pos <= baseline_pos,
0 commit comments