]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/non_expressive_names.rs
Auto merge of #4780 - flip1995:ice_4775, r=phansch
[rust.git] / clippy_lints / src / non_expressive_names.rs
index 12df9325650f3648c5695ae8645501eae5fadf2d..8ac31743a62459a17999a805c9e257b134f067cd 100644 (file)
@@ -352,8 +352,8 @@ fn visit_mac(&mut self, _mac: &Mac) {
 
 impl EarlyLintPass for NonExpressiveNames {
     fn check_item(&mut self, cx: &EarlyContext<'_>, item: &Item) {
-        if let ItemKind::Fn(ref decl, _, _, ref blk) = item.kind {
-            do_check(self, cx, &item.attrs, decl, blk);
+        if let ItemKind::Fn(ref sig, _, ref blk) = item.kind {
+            do_check(self, cx, &item.attrs, &sig.decl, blk);
         }
     }