Fix dogfood
This commit is contained in:
parent
f69e09ab0e
commit
2abb775de5
@ -134,7 +134,7 @@ impl EarlyLintPass for MiscEarly {
|
||||
expr.span,
|
||||
"Try not to call a closure in the expression where it is declared.",
|
||||
|db| {
|
||||
if decl.inputs.len() == 0 {
|
||||
if decl.inputs.is_empty() {
|
||||
let hint = format!("{}", snippet(cx, block.span, ".."));
|
||||
db.span_suggestion(expr.span, "Try doing something like: ", hint);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user