From e5a5b0a0774625eebbe7b29c67b49dc6431544d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Fri, 20 Dec 2019 21:19:46 +0100 Subject: [PATCH] rustup https://github.com/rust-lang/rust/pull/67455 --- clippy_lints/src/non_expressive_names.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clippy_lints/src/non_expressive_names.rs b/clippy_lints/src/non_expressive_names.rs index d2835ba986fb..6ff43d5322df 100644 --- a/clippy_lints/src/non_expressive_names.rs +++ b/clippy_lints/src/non_expressive_names.rs @@ -358,8 +358,8 @@ impl EarlyLintPass for NonExpressiveNames { } } - fn check_impl_item(&mut self, cx: &EarlyContext<'_>, item: &ImplItem) { - if let ImplItemKind::Method(ref sig, ref blk) = item.kind { + fn check_impl_item(&mut self, cx: &EarlyContext<'_>, item: &AssocItem) { + if let AssocItemKind::Fn(ref sig, Some(ref blk)) = item.kind { do_check(self, cx, &item.attrs, &sig.decl, blk); } }