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 {
64
64
return ;
65
65
}
66
66
if part. is_empty( ) {
67
- sugg = format!( "Path::new(&{})" , arg ) ;
67
+ sugg = format!( "Path::new(&{arg })" ) ;
68
68
}
69
69
else {
70
70
push_comps( & mut sugg, part) ;
71
- let _ = write!( sugg, ".join(&{})" , arg ) ;
71
+ let _ = write!( sugg, ".join(&{arg })" ) ;
72
72
}
73
73
}
74
74
for n in 1 ..real_vars. len( ) {
@@ -78,10 +78,10 @@ impl<'tcx> LateLintPass<'tcx> for PathsFromFormat {
78
78
}
79
79
else if n < real_vars. len( ) {
80
80
push_comps( & mut sugg, part) ;
81
- let _ = write!( sugg, ".join(&{})" , arg ) ;
81
+ let _ = write!( sugg, ".join(&{arg })" ) ;
82
82
}
83
83
else {
84
- sugg = format!( "{sugg}.join(&{})" , arg ) ;
84
+ sugg = format!( "{sugg}.join(&{arg })" ) ;
85
85
}
86
86
}
87
87
}
You can’t perform that action at this time.
0 commit comments