mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 05:33:27 +00:00
Correctly mark the span of captured arguments in format_args!()
It should only include the identifier, or misspelling suggestions will be wrong.
This commit is contained in:
parent
9f75aff391
commit
dcdff601fe
1 changed files with 1 additions and 1 deletions
|
@ -453,7 +453,7 @@ impl SimpleFormatArgs {
|
|||
}
|
||||
}
|
||||
},
|
||||
ArgumentNamed(n) => {
|
||||
ArgumentNamed(n, _) => {
|
||||
if let Some(x) = self.named.iter_mut().find(|x| x.0 == n) {
|
||||
match x.1.as_slice() {
|
||||
// A non-empty format string has been seen already.
|
||||
|
|
Loading…
Reference in a new issue