Add negation to `len_zero` lint to show more explicit message. Fixes #4304 I have updated the `len_zero` to show the required negation in case of like the below case. ``` fn main() { let v = vec![1]; if v.len() > 0 { } } ``` changelog: Clarify suggestion of `len_zero` lint. |
||
|---|---|---|
| .. | ||
| auxiliary | ||
| ui | ||
| ui-toml | ||
| compile-test.rs | ||
| dogfood.rs | ||
| fmt.rs | ||
| matches.rs | ||
| missing-test-files.rs | ||
| needless_continue_helpers.rs | ||
| versioncheck.rs | ||