Skip to content

Commit 299b837

Browse files
committed
fix dogfood
1 parent fe92ccb commit 299b837

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clippy_lints/src/paths_from_format.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)