@@ -289,16 +289,16 @@ fn render_stats_timewin(frame: &mut Frame, area: Rect, stats: &RotateDiffWindowG
289
289
frame,
290
290
area,
291
291
Title :: from ( Line :: from ( vec ! [
292
- " Stats for " . into( ) ,
293
- format!( "last {} " , tw) . yellow( ) . bold( ) ,
292
+ "Stats for " . into( ) ,
293
+ format!( "last {}" , tw) . yellow( ) . bold( ) ,
294
294
] ) ) ,
295
295
& stats. counter ,
296
296
duration,
297
297
) ;
298
298
}
299
299
300
300
fn render_stats_overall ( frame : & mut Frame , area : Rect , counter : & Counter , elapsed : Duration ) {
301
- render_stats ( frame, area, " Stats overall " . into ( ) , counter, elapsed) ;
301
+ render_stats ( frame, area, "Stats overall" . into ( ) , counter, elapsed) ;
302
302
}
303
303
304
304
fn render_stats ( frame : & mut Frame , area : Rect , title : Title , counter : & Counter , elapsed : Duration ) {
@@ -388,7 +388,7 @@ fn render_process_gauge(
388
388
}
389
389
390
390
let guage = Gauge :: default ( )
391
- . block ( Block :: new ( ) . title ( " Progress " ) . borders ( Borders :: ALL ) )
391
+ . block ( Block :: new ( ) . title ( "Progress" ) . borders ( Borders :: ALL ) )
392
392
. gauge_style ( Style :: new ( ) . fg ( Color :: Cyan ) )
393
393
. label ( label)
394
394
. ratio ( progress) ;
@@ -410,7 +410,7 @@ fn render_status_dist(frame: &mut Frame, area: Rect, status_dist: &HashMap<Statu
410
410
Line :: from ( s)
411
411
} )
412
412
. collect_vec ( ) ;
413
- let p = Paragraph :: new ( dist) . block ( Block :: new ( ) . title ( " Status distribution " ) . borders ( Borders :: ALL ) ) ;
413
+ let p = Paragraph :: new ( dist) . block ( Block :: new ( ) . title ( "Status distribution" ) . borders ( Borders :: ALL ) ) ;
414
414
frame. render_widget ( p, area) ;
415
415
}
416
416
@@ -424,7 +424,7 @@ fn render_error_dist(frame: &mut Frame, area: Rect, error_dist: &HashMap<String,
424
424
. sorted_by_key ( |( _, & cnt) | std:: cmp:: Reverse ( cnt) )
425
425
. map ( |( err, cnt) | Line :: from ( format ! ( "[{cnt}] {err}" ) ) )
426
426
. collect_vec ( ) ;
427
- let p = Paragraph :: new ( dist) . block ( Block :: new ( ) . title ( " Error distribution " ) . borders ( Borders :: ALL ) ) ;
427
+ let p = Paragraph :: new ( dist) . block ( Block :: new ( ) . title ( "Error distribution" ) . borders ( Borders :: ALL ) ) ;
428
428
frame. render_widget ( p, area) ;
429
429
}
430
430
@@ -458,7 +458,7 @@ fn render_iter_hist(frame: &mut Frame, area: Rect, rwg: &RotateWindowGroup, tw:
458
458
. map ( |w| w + 2 )
459
459
. unwrap_or ( 1 ) as u16 ;
460
460
let chart = BarChart :: default ( )
461
- . block ( Block :: new ( ) . title ( " Iteration histogram " ) . borders ( Borders :: ALL ) )
461
+ . block ( Block :: new ( ) . title ( "Iteration histogram" ) . borders ( Borders :: ALL ) )
462
462
. data ( bar_num_iter_str. as_slice ( ) )
463
463
. bar_style ( Style :: default ( ) . fg ( Color :: Green ) )
464
464
. label_style ( Style :: default ( ) . fg ( Color :: Cyan ) )
@@ -480,9 +480,9 @@ fn render_latency_hist(frame: &mut Frame, area: Rect, hist: &LatencyHistogram, h
480
480
. block (
481
481
Block :: new ( )
482
482
. title ( Title :: from ( Line :: from ( vec ! [
483
- " Latency histogram (" . into( ) ,
483
+ "Latency histogram (" . into( ) ,
484
484
u. to_string( ) . yellow( ) . bold( ) ,
485
- ") " . into( ) ,
485
+ ")" . into( ) ,
486
486
] ) ) )
487
487
. borders ( Borders :: ALL ) ,
488
488
)
0 commit comments