Add required negation in non_zero lint

This commit is contained in:
chansuke 2019-07-29 23:42:33 +09:00
parent dc69a5c0b6
commit 2d467dca62

View file

@ -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,