]>
Commit | Line | Data |
---|---|---|
f20569fa | 1 | error: length comparison to zero |
c620b35d | 2 | --> tests/ui/len_zero_ranges.rs:7:17 |
f20569fa XL |
3 | | |
4 | LL | let _ = (0..42).len() == 0; | |
5 | | ^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `(0..42).is_empty()` | |
6 | | | |
7 | = note: `-D clippy::len-zero` implied by `-D warnings` | |
781aab86 | 8 | = help: to override `-D warnings` add `#[allow(clippy::len_zero)]` |
f20569fa XL |
9 | |
10 | error: length comparison to zero | |
c620b35d | 11 | --> tests/ui/len_zero_ranges.rs:11:17 |
f20569fa XL |
12 | | |
13 | LL | let _ = (0_u8..=42).len() == 0; | |
14 | | ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `(0_u8..=42).is_empty()` | |
15 | ||
16 | error: aborting due to 2 previous errors | |
17 |