Skip to content

Commit 2abb775

Browse files
committed
Fix dogfood
1 parent f69e09a commit 2abb775

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/misc_early.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ impl EarlyLintPass for MiscEarly {
134134
expr.span,
135135
"Try not to call a closure in the expression where it is declared.",
136136
|db| {
137-
if decl.inputs.len() == 0 {
137+
if decl.inputs.is_empty() {
138138
let hint = format!("{}", snippet(cx, block.span, ".."));
139139
db.span_suggestion(expr.span, "Try doing something like: ", hint);
140140
}

0 commit comments

Comments
 (0)