We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe92ccb commit 299b837Copy full SHA for 299b837
clippy_lints/src/paths_from_format.rs
@@ -64,11 +64,11 @@ impl<'tcx> LateLintPass<'tcx> for PathsFromFormat {
64
return;
65
}
66
if part.is_empty() {
67
- sugg = format!("Path::new(&{})", arg);
+ sugg = format!("Path::new(&{arg})");
68
69
else {
70
push_comps(&mut sugg, part);
71
- let _ = write!(sugg, ".join(&{})", arg);
+ let _ = write!(sugg, ".join(&{arg})");
72
73
74
for n in 1..real_vars.len() {
@@ -78,10 +78,10 @@ impl<'tcx> LateLintPass<'tcx> for PathsFromFormat {
78
79
else if n < real_vars.len() {
80
81
82
83
84
- sugg = format!("{sugg}.join(&{})", arg);
+ sugg = format!("{sugg}.join(&{arg})");
85
86
87
0 commit comments