@@ -227,7 +227,7 @@ pub fn compgen<T: Runtime>(
227
227
228
228
let break_chars = shell. need_break_chars ( runtime, & argc_prefix) ;
229
229
if !break_chars. is_empty ( ) {
230
- let prefix = format ! ( "{}{}" , argc_prefix , argc_filter ) ;
230
+ let prefix = format ! ( "{argc_prefix}{argc_filter}" ) ;
231
231
let prefix = match unbalance_quote ( & prefix) {
232
232
Some ( ( _, i) ) => prefix. chars ( ) . take ( i. saturating_sub ( 1 ) ) . collect ( ) ,
233
233
None => prefix,
@@ -569,7 +569,7 @@ impl ArgcPathValue {
569
569
continue ;
570
570
}
571
571
let path_value = if is_dir {
572
- format ! ( "{value_prefix}{file_name}{}" , path_sep )
572
+ format ! ( "{value_prefix}{file_name}{path_sep}" )
573
573
} else {
574
574
format ! ( "{value_prefix}{file_name}{suffix}" )
575
575
} ;
@@ -638,7 +638,7 @@ impl ArgcPathValue {
638
638
cwd = runtime. chdir ( & cwd, cd) ?;
639
639
}
640
640
let trims = cwd. len ( ) + 1 ;
641
- let new_value = format ! ( "{}{sep}{value}" , cwd ) . replace ( '\\' , "/" ) ;
641
+ let new_value = format ! ( "{cwd }{sep}{value}" ) . replace ( '\\' , "/" ) ;
642
642
( new_value, trims, FILE_PROTO . into ( ) )
643
643
}
644
644
} else if is_home || value. starts_with ( home_p) {
@@ -657,7 +657,7 @@ impl ArgcPathValue {
657
657
( path_s, trims, prefix. into ( ) )
658
658
} else if value. starts_with ( sep) {
659
659
let new_value = if is_windows_mode {
660
- format ! ( "C:{}" , value )
660
+ format ! ( "C:{value}" )
661
661
} else {
662
662
value. clone ( )
663
663
} ;
@@ -679,7 +679,7 @@ impl ArgcPathValue {
679
679
if let Some ( cd) = cd {
680
680
cwd = runtime. chdir ( & cwd, cd) ?;
681
681
}
682
- let new_value = format ! ( "{}{sep}{new_value}" , cwd ) ;
682
+ let new_value = format ! ( "{cwd }{sep}{new_value}" ) ;
683
683
let trims = cwd. len ( ) + 1 ;
684
684
( new_value, trims, prefix. to_string ( ) )
685
685
} ;
0 commit comments