From 25ed62ff23eca4b6757bbd18f53061feebb09ae4 Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Wed, 23 Mar 2016 14:45:51 +0100 Subject: [PATCH] improve lint attribute detail --- src/booleans.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/booleans.rs b/src/booleans.rs index 178cef3aada..12cec565271 100644 --- a/src/booleans.rs +++ b/src/booleans.rs @@ -26,8 +26,8 @@ impl LintPass for NonminimalBool { } impl LateLintPass for NonminimalBool { - fn check_crate(&mut self, cx: &LateContext, krate: &Crate) { - krate.visit_all_items(&mut NonminimalBoolVisitor(cx)) + fn check_item(&mut self, cx: &LateContext, item: &Item) { + NonminimalBoolVisitor(cx).visit_item(item) } }