@@ -46,13 +46,13 @@ struct Summary {
4646async fn main ( ) {
4747 tracing:: subscriber:: set_global_default ( tracing_subscriber:: FmtSubscriber :: default ( ) ) . unwrap ( ) ;
4848
49- println ! ( "REQUESTS={}" , REQUESTS ) ;
50- println ! ( "CONCURRENCY={}" , CONCURRENCY ) ;
51- println ! ( "ENDPOINT_CAPACITY={}" , ENDPOINT_CAPACITY ) ;
49+ println ! ( "REQUESTS={REQUESTS}" ) ;
50+ println ! ( "CONCURRENCY={CONCURRENCY}" ) ;
51+ println ! ( "ENDPOINT_CAPACITY={ENDPOINT_CAPACITY}" ) ;
5252 print ! ( "MAX_ENDPOINT_LATENCIES=[" ) ;
5353 for max in & MAX_ENDPOINT_LATENCIES {
5454 let l = max. as_secs ( ) * 1_000 + u64:: from ( max. subsec_millis ( ) ) ;
55- print ! ( "{}ms, " , l ) ;
55+ print ! ( "{l }ms, " ) ;
5656 }
5757 println ! ( "]" ) ;
5858
@@ -149,7 +149,7 @@ where
149149 <D :: Service as Service < Req > >:: Future : Send ,
150150 <D :: Service as load:: Load >:: Metric : std:: fmt:: Debug ,
151151{
152- println ! ( "{}" , name ) ;
152+ println ! ( "{name}" ) ;
153153
154154 let requests = stream:: repeat ( Req ) . take ( REQUESTS ) ;
155155 let service = ConcurrencyLimit :: new ( lb, CONCURRENCY ) ;
@@ -193,7 +193,7 @@ impl Summary {
193193 }
194194 for ( i, c) in self . count_by_instance . iter ( ) . enumerate ( ) {
195195 let p = * c as f64 / total as f64 * 100.0 ;
196- println ! ( " [{:02}] {:>5.01}%" , i , p ) ;
196+ println ! ( " [{i :02}] {p :>5.01}%" ) ;
197197 }
198198
199199 println ! ( " wall {:4}s" , self . start. elapsed( ) . as_secs( ) ) ;
0 commit comments