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 | dcdff601fe49240df4e73a763ff2e15cd3304cdd (patch) | |
| tree | 77545e0a8e69c6e0b5172bff413bb303726a0c07 /clippy_lints/src/write.rs | |
| parent | 9f75aff3919122b5657650930c38095731d2dbba (diff) | |
| download | rust-dcdff601fe49240df4e73a763ff2e15cd3304cdd.tar.gz rust-dcdff601fe49240df4e73a763ff2e15cd3304cdd.zip | |
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 'clippy_lints/src/write.rs')
| -rw-r--r-- | clippy_lints/src/write.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/write.rs b/clippy_lints/src/write.rs index b0044695ea8..1fa6301ebd7 100644 --- a/clippy_lints/src/write.rs +++ b/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. |
