Skip to content

Commit ecf3165

Browse files
authored
Rollup merge of rust-lang#94030 - ChayimFriedman2:issue-94010, r=petrochenkov
Correctly mark the span of captured arguments in `format_args!()` It should not include the braces, or misspelling suggestions will be wrong. Fixes rust-lang#94010.
2 parents e713288 + dcdff60 commit ecf3165

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/write.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ impl SimpleFormatArgs {
453453
}
454454
}
455455
},
456-
ArgumentNamed(n) => {
456+
ArgumentNamed(n, _) => {
457457
if let Some(x) = self.named.iter_mut().find(|x| x.0 == n) {
458458
match x.1.as_slice() {
459459
// A non-empty format string has been seen already.

0 commit comments

Comments
 (0)