Skip to content

Commit abdb277

Browse files
committed
Auto merge of #4926 - matthiaskrgr:rurstup_24, r=matthiaskrgr
rustup rust-lang/rust#67455 changelog: none
2 parents b4ad56e + e5a5b0a commit abdb277

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: clippy_lints/src/non_expressive_names.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,8 @@ impl EarlyLintPass for NonExpressiveNames {
358358
}
359359
}
360360

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

0 commit comments

Comments
 (0)