@@ -341,7 +341,7 @@ impl<'a> InteractivePrinter<'a> {
341
341
self . print_horizontal_line_term ( handle, self . colors . grid ) ?;
342
342
} else {
343
343
let hline = "─" . repeat ( self . config . term_width - ( self . panel_width + 1 ) ) ;
344
- let hline = format ! ( "{}{}{ }" , "─" . repeat( self . panel_width) , grid_char , hline ) ;
344
+ let hline = format ! ( "{}{grid_char}{hline }" , "─" . repeat( self . panel_width) ) ;
345
345
writeln ! ( handle, "{}" , self . colors. grid. paint( hline) ) ?;
346
346
}
347
347
@@ -355,8 +355,7 @@ impl<'a> InteractivePrinter<'a> {
355
355
356
356
let text_truncated: String = text. chars ( ) . take ( self . panel_width - 1 ) . collect ( ) ;
357
357
let text_filled: String = format ! (
358
- "{}{}" ,
359
- text_truncated,
358
+ "{text_truncated}{}" ,
360
359
" " . repeat( self . panel_width - 1 - text_truncated. len( ) )
361
360
) ;
362
361
if self . config . style_components . grid ( ) {
@@ -521,13 +520,12 @@ impl Printer for InteractivePrinter<'_> {
521
520
. try_for_each ( |component| match component {
522
521
StyleComponent :: HeaderFilename => {
523
522
let header_filename = format ! (
524
- "{}{}{}" ,
523
+ "{}{}{mode }" ,
525
524
description
526
525
. kind( )
527
526
. map( |kind| format!( "{kind}: " ) )
528
527
. unwrap_or_else( || "" . into( ) ) ,
529
528
self . colors. header_value. paint( description. title( ) ) ,
530
- mode
531
529
) ;
532
530
self . print_header_multiline_component ( handle, & header_filename)
533
531
}
@@ -704,7 +702,7 @@ impl Printer for InteractivePrinter<'_> {
704
702
"{}{}" ,
705
703
as_terminal_escaped(
706
704
style,
707
- & format!( "{}{}" , self . ansi_style, text_trimmed ) ,
705
+ & format!( "{}{text_trimmed }" , self . ansi_style) ,
708
706
true_color,
709
707
colored_output,
710
708
italics,
@@ -794,7 +792,7 @@ impl Printer for InteractivePrinter<'_> {
794
792
"{}{}\n {}" ,
795
793
as_terminal_escaped(
796
794
style,
797
- & format!( "{}{}" , self . ansi_style, line_buf ) ,
795
+ & format!( "{}{line_buf }" , self . ansi_style) ,
798
796
self . config. true_color,
799
797
self . config. colored_output,
800
798
self . config. use_italic_text,
@@ -821,7 +819,7 @@ impl Printer for InteractivePrinter<'_> {
821
819
"{}" ,
822
820
as_terminal_escaped(
823
821
style,
824
- & format!( "{}{}" , self . ansi_style, line_buf ) ,
822
+ & format!( "{}{line_buf }" , self . ansi_style) ,
825
823
self . config. true_color,
826
824
self . config. colored_output,
827
825
self . config. use_italic_text,
0 commit comments