diff options
| author | Chayim Refael Friedman <chayimfr@gmail.com> | 2022-02-16 00:38:04 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-16 07:34:06 +0000 |
| commit | 91adb6ccd693737aaf740bc18bc6f82e3898d322 (patch) | |
| tree | ac02a2e2a47eae34e20200b947efa94da3321b20 /src/tools | |
| parent | 1e12aef3fab243407f9d71ba9956cb2a1bf105d5 (diff) | |
Correctly mark the span of captured arguments in `format_args!()`
It should only include the identifier, or misspelling suggestions will be wrong.
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/clippy/clippy_lints/src/write.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/clippy/clippy_lints/src/write.rs b/src/tools/clippy/clippy_lints/src/write.rs index b0044695ea8..1fa6301ebd7 100644 --- a/src/tools/clippy/clippy_lints/src/write.rs +++ b/src/tools/clippy/clippy_lints/src/write.rs @@ -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. |
