File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -64,11 +64,11 @@ impl<'tcx> LateLintPass<'tcx> for PathsFromFormat {
6464 return ;
6565 }
6666 if part. is_empty( ) {
67- sugg = format!( "Path::new(&{})" , arg ) ;
67+ sugg = format!( "Path::new(&{arg })" ) ;
6868 }
6969 else {
7070 push_comps( & mut sugg, part) ;
71- let _ = write!( sugg, ".join(&{})" , arg ) ;
71+ let _ = write!( sugg, ".join(&{arg })" ) ;
7272 }
7373 }
7474 for n in 1 ..real_vars. len( ) {
@@ -78,10 +78,10 @@ impl<'tcx> LateLintPass<'tcx> for PathsFromFormat {
7878 }
7979 else if n < real_vars. len( ) {
8080 push_comps( & mut sugg, part) ;
81- let _ = write!( sugg, ".join(&{})" , arg ) ;
81+ let _ = write!( sugg, ".join(&{arg })" ) ;
8282 }
8383 else {
84- sugg = format!( "{sugg}.join(&{})" , arg ) ;
84+ sugg = format!( "{sugg}.join(&{arg })" ) ;
8585 }
8686 }
8787 }
You can’t perform that action at this time.
0 commit comments