Skip to content

Commit 036ec5b

Browse files
committed
1 parent 7e49122 commit 036ec5b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

clippy_lints/src/excessive_bools.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,12 @@ impl EarlyLintPass for ExcessiveBools {
162162
}
163163
| ItemKind::Trait(_, _, _, _, items) => {
164164
for item in items {
165-
if let AssocItemKind::Fn(fn_sig, _, _) = &item.kind {
165+
if let AssocItemKind::Fn(_, fn_sig, _, _) = &item.kind {
166166
self.check_fn_sig(cx, fn_sig, item.span);
167167
}
168168
}
169169
},
170-
ItemKind::Fn(fn_sig, _, _) => self.check_fn_sig(cx, fn_sig, item.span),
170+
ItemKind::Fn(_, fn_sig, _, _) => self.check_fn_sig(cx, fn_sig, item.span),
171171
_ => (),
172172
}
173173
}

clippy_lints/src/non_expressive_names.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -354,13 +354,13 @@ impl<'a, 'tcx> Visitor<'tcx> for SimilarNamesLocalVisitor<'a, 'tcx> {
354354

355355
impl EarlyLintPass for NonExpressiveNames {
356356
fn check_item(&mut self, cx: &EarlyContext<'_>, item: &Item) {
357-
if let ItemKind::Fn(ref sig, _, Some(ref blk)) = item.kind {
357+
if let ItemKind::Fn(_, ref sig, _, Some(ref blk)) = item.kind {
358358
do_check(self, cx, &item.attrs, &sig.decl, blk);
359359
}
360360
}
361361

362362
fn check_impl_item(&mut self, cx: &EarlyContext<'_>, item: &AssocItem) {
363-
if let AssocItemKind::Fn(ref sig, _, Some(ref blk)) = item.kind {
363+
if let AssocItemKind::Fn(_, ref sig, _, Some(ref blk)) = item.kind {
364364
do_check(self, cx, &item.attrs, &sig.decl, blk);
365365
}
366366
}

clippy_lints/src/redundant_static_lifetimes.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ impl RedundantStaticLifetimes {
7979
impl EarlyLintPass for RedundantStaticLifetimes {
8080
fn check_item(&mut self, cx: &EarlyContext<'_>, item: &Item) {
8181
if !item.span.from_expansion() {
82-
if let ItemKind::Const(ref var_type, _) = item.kind {
82+
if let ItemKind::Const(_, ref var_type, _) = item.kind {
8383
self.visit_type(var_type, cx, "Constants have by default a `'static` lifetime");
8484
// Don't check associated consts because `'static` cannot be elided on those (issue
8585
// #2438)

0 commit comments

Comments
 (0)