mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-17 14:38:46 +00:00
Rollup merge of #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 #94010.
This commit is contained in:
commit
ecf3165567
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…
Add table
Reference in a new issue