@@ -909,7 +909,13 @@ mod tests {
909909 agg_configs. insert ( 11 , config. clone ( ) ) ;
910910
911911 let sink = Arc :: new ( CapturingOutputSink :: new ( ) ) ;
912- let mut worker = make_worker ( agg_configs. clone ( ) , sink. clone ( ) , false , 0 , LateDataPolicy :: Drop ) ;
912+ let mut worker = make_worker (
913+ agg_configs. clone ( ) ,
914+ sink. clone ( ) ,
915+ false ,
916+ 0 ,
917+ LateDataPolicy :: Drop ,
918+ ) ;
913919
914920 worker
915921 . process_samples ( "cpu{host=\" A\" }" , vec ! [ ( 1_000_i64 , 1.0 ) ] )
@@ -961,12 +967,18 @@ mod tests {
961967 . downcast_ref :: < MultipleSumAccumulator > ( )
962968 . expect ( "Arroyo payload should deserialize to MultipleSumAccumulator" ) ;
963969
964- assert_eq ! ( handcrafted_output. aggregation_id, arroyo_output. aggregation_id) ;
970+ assert_eq ! (
971+ handcrafted_output. aggregation_id,
972+ arroyo_output. aggregation_id
973+ ) ;
965974 assert_eq ! (
966975 handcrafted_output. start_timestamp,
967976 arroyo_output. start_timestamp
968977 ) ;
969- assert_eq ! ( handcrafted_output. end_timestamp, arroyo_output. end_timestamp) ;
978+ assert_eq ! (
979+ handcrafted_output. end_timestamp,
980+ arroyo_output. end_timestamp
981+ ) ;
970982 assert_eq ! ( handcrafted_output. key, arroyo_output. key) ;
971983 assert_eq ! ( handcrafted_acc. sums, arroyo_acc. sums) ;
972984 }
@@ -982,12 +994,19 @@ mod tests {
982994 agg_configs. insert ( 12 , config) ;
983995
984996 let sink = Arc :: new ( CapturingOutputSink :: new ( ) ) ;
985- let mut worker =
986- make_worker ( agg_configs. clone ( ) , sink. clone ( ) , false , 0 , LateDataPolicy :: Drop ) ;
997+ let mut worker = make_worker (
998+ agg_configs. clone ( ) ,
999+ sink. clone ( ) ,
1000+ false ,
1001+ 0 ,
1002+ LateDataPolicy :: Drop ,
1003+ ) ;
9871004
9881005 let samples = vec ! [ ( 1_000_i64 , 10.0 ) , ( 5_000_i64 , 20.0 ) , ( 9_000_i64 , 30.0 ) ] ;
9891006 for & ( ts, value) in & samples {
990- worker. process_samples ( "latency" , vec ! [ ( ts, value) ] ) . unwrap ( ) ;
1007+ worker
1008+ . process_samples ( "latency" , vec ! [ ( ts, value) ] )
1009+ . unwrap ( ) ;
9911010 }
9921011 worker
9931012 . process_samples ( "latency" , vec ! [ ( 10_000_i64 , 0.0 ) ] )
@@ -1028,16 +1047,23 @@ mod tests {
10281047 . downcast_ref :: < DatasketchesKLLAccumulator > ( )
10291048 . expect ( "Arroyo payload should deserialize to DatasketchesKLLAccumulator" ) ;
10301049
1031- assert_eq ! ( handcrafted_output. aggregation_id, arroyo_output. aggregation_id) ;
1050+ assert_eq ! (
1051+ handcrafted_output. aggregation_id,
1052+ arroyo_output. aggregation_id
1053+ ) ;
10321054 assert_eq ! (
10331055 handcrafted_output. start_timestamp,
10341056 arroyo_output. start_timestamp
10351057 ) ;
1036- assert_eq ! ( handcrafted_output. end_timestamp, arroyo_output. end_timestamp) ;
1058+ assert_eq ! (
1059+ handcrafted_output. end_timestamp,
1060+ arroyo_output. end_timestamp
1061+ ) ;
10371062 assert_eq ! ( handcrafted_output. key, None ) ;
1038- assert_eq ! ( arroyo_output. key, Some ( KeyByLabelValues :: new_with_labels( vec![
1039- String :: new( )
1040- ] ) ) ) ;
1063+ assert_eq ! (
1064+ arroyo_output. key,
1065+ Some ( KeyByLabelValues :: new_with_labels( vec![ String :: new( ) ] ) )
1066+ ) ;
10411067 assert_eq ! ( handcrafted_acc. inner. k, arroyo_acc. inner. k) ;
10421068 assert_eq ! (
10431069 handcrafted_acc. inner. sketch. get_n( ) ,
0 commit comments