This commit is contained in:
Matthias Krüger 2019-12-20 21:19:46 +01:00
parent b4ad56e5c4
commit e5a5b0a077

View file

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