diff options
| author | Alex Macleod <alex@macleod.io> | 2022-07-31 15:11:00 +0000 |
|---|---|---|
| committer | Alex Macleod <alex@macleod.io> | 2022-07-31 15:11:33 +0000 |
| commit | 2a0b51d852e3765d257284f91fc3246084c96ee5 (patch) | |
| tree | 07555af30e2578d89e2798dc261691868be2a017 /src | |
| parent | 482153bc208df5fc236cc0e1cddb24e93fcc332f (diff) | |
| download | rust-2a0b51d852e3765d257284f91fc3246084c96ee5.tar.gz rust-2a0b51d852e3765d257284f91fc3246084c96ee5.zip | |
Always include a position span in rustc_parse_format::Argument
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/clippy/clippy_lints/src/write.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/clippy/clippy_lints/src/write.rs b/src/tools/clippy/clippy_lints/src/write.rs index 3a99d1b417f..32718200c0b 100644 --- a/src/tools/clippy/clippy_lints/src/write.rs +++ b/src/tools/clippy/clippy_lints/src/write.rs @@ -441,7 +441,7 @@ impl SimpleFormatArgs { }; match arg.position { - ArgumentIs(n, _) | ArgumentImplicitlyIs(n) => { + ArgumentIs(n) | ArgumentImplicitlyIs(n) => { if self.unnamed.len() <= n { // Use a dummy span to mark all unseen arguments. self.unnamed.resize_with(n, || vec![DUMMY_SP]); @@ -462,7 +462,7 @@ impl SimpleFormatArgs { } } }, - ArgumentNamed(n, _) => { + ArgumentNamed(n) => { let n = Symbol::intern(n); if let Some(x) = self.named.iter_mut().find(|x| x.0 == n) { match x.1.as_slice() { |
