mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 03:25:55 +00:00
improve lint attribute detail
This commit is contained in:
parent
1f1f09ba92
commit
25ed62ff23
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user