mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 09:53:04 +03:00
18a7dce4da
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.