diff options
| author | bors <bors@rust-lang.org> | 2019-12-21 01:10:52 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-12-21 01:10:52 +0000 |
| commit | abdb277a85e3031e43e3466348f955fffa08ad6a (patch) | |
| tree | 6cae54fe8629218294fce19e5452d29c9517b11b | |
| parent | b4ad56e5c4830f55d025b894067668d4eb9d5ce6 (diff) | |
| parent | e5a5b0a0774625eebbe7b29c67b49dc6431544d1 (diff) | |
| download | rust-abdb277a85e3031e43e3466348f955fffa08ad6a.tar.gz rust-abdb277a85e3031e43e3466348f955fffa08ad6a.zip | |
Auto merge of #4926 - matthiaskrgr:rurstup_24, r=matthiaskrgr
rustup https://github.com/rust-lang/rust/pull/67455 changelog: none
| -rw-r--r-- | clippy_lints/src/non_expressive_names.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/non_expressive_names.rs b/clippy_lints/src/non_expressive_names.rs index d2835ba986f..6ff43d5322d 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); } } |
