mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-17 06:28:42 +00:00
This commit is contained in:
parent
b4ad56e5c4
commit
e5a5b0a077
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue