diff options
| author | Esteban Kuber <esteban@kuber.com.ar> | 2021-11-16 20:44:25 +0000 |
|---|---|---|
| committer | Esteban Kuber <esteban@kuber.com.ar> | 2021-12-13 17:09:16 +0000 |
| commit | d8af82e4bb1b5bce1124f42518e47ba72eb03179 (patch) | |
| tree | fd8cf89891f8f3c89a820c678fe610c39b1b8497 /clippy_lints/src/utils | |
| parent | 41c48bd390c6aa43d9567bc11710d67ab41930fc (diff) | |
Fix clippy uses of QPath::LangItem
Diffstat (limited to 'clippy_lints/src/utils')
| -rw-r--r-- | clippy_lints/src/utils/author.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/utils/author.rs b/clippy_lints/src/utils/author.rs index d20bf341318..f186e1f05a0 100644 --- a/clippy_lints/src/utils/author.rs +++ b/clippy_lints/src/utils/author.rs @@ -260,7 +260,7 @@ impl<'a, 'tcx> PrintVisitor<'a, 'tcx> { } fn qpath(&self, qpath: &Binding<&QPath<'_>>) { - if let QPath::LangItem(lang_item, _) = *qpath.value { + if let QPath::LangItem(lang_item, ..) = *qpath.value { out!("if matches!({qpath}, QPath::LangItem(LangItem::{lang_item:?}, _));"); } else { out!("if match_qpath({qpath}, &[{}]);", path_to_string(qpath.value)); |
