improve lint attribute detail

This commit is contained in:
Oliver Schneider 2016-03-23 14:45:51 +01:00
parent 1f1f09ba92
commit 25ed62ff23

View File

@ -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)
}
}