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); } }