Skip to content

Commit

Permalink
Add required negation in non_zero lint
Browse files Browse the repository at this point in the history
  • Loading branch information
chansuke committed Jul 31, 2019
1 parent dc69a5c commit 2d467dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/len_zero.rs
Expand Up @@ -244,7 +244,7 @@ fn check_len(
LEN_ZERO,
span,
&format!("length comparison to {}", if compare_to == 0 { "zero" } else { "one" }),
"using `is_empty` is clearer and more explicit",
&format!("using `{}is_empty` is clearer and more explicit", op),
format!(
"{}{}.is_empty()",
op,
Expand Down

0 comments on commit 2d467dc

Please sign in to comment.