Fix dogfood

This commit is contained in:
mcarton 2016-03-06 14:10:04 +01:00
parent f69e09ab0e
commit 2abb775de5

View File

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