Skip to content

Commit dcdff60

Browse files
Correctly mark the span of captured arguments in format_args!()
It should only include the identifier, or misspelling suggestions will be wrong.
1 parent 9f75aff commit dcdff60

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)