1 error: item `PubOne` has a public `len` method but no corresponding `is_empty` method
5 10 | | pub fn len(self: &Self) -> isize {
11 = note: `-D len-without-is-empty` implied by `-D warnings`
13 error: trait `PubTraitsToo` has a `len` method but no `is_empty` method
16 55 | / pub trait PubTraitsToo {
17 56 | | fn len(self: &Self) -> isize;
21 = note: `-D len-without-is-empty` implied by `-D warnings`
23 error: item `HasIsEmpty` has a public `len` method but a private `is_empty` method
26 89 | / impl HasIsEmpty {
27 90 | | pub fn len(self: &Self) -> isize {
35 = note: `-D len-without-is-empty` implied by `-D warnings`
37 error: item `HasWrongIsEmpty` has a public `len` method but no corresponding `is_empty` method
40 118 | / impl HasWrongIsEmpty {
41 119 | | pub fn len(self: &Self) -> isize {
49 = note: `-D len-without-is-empty` implied by `-D warnings`
51 error: length comparison to zero
54 130 | if x.len() == 0 {
55 | ^^^^^^^^^^^^ help: using `is_empty` is more concise: `x.is_empty()`
57 = note: `-D len-zero` implied by `-D warnings`
59 error: length comparison to zero
62 134 | if "".len() == 0 {
63 | ^^^^^^^^^^^^^ help: using `is_empty` is more concise: `"".is_empty()`
65 = note: `-D len-zero` implied by `-D warnings`
67 error: length comparison to zero
70 148 | if has_is_empty.len() == 0 {
71 | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is more concise: `has_is_empty.is_empty()`
73 = note: `-D len-zero` implied by `-D warnings`
75 error: length comparison to zero
78 151 | if has_is_empty.len() != 0 {
79 | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is more concise: `!has_is_empty.is_empty()`
81 = note: `-D len-zero` implied by `-D warnings`
83 error: length comparison to zero
86 154 | if has_is_empty.len() > 0 {
87 | ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is more concise: `!has_is_empty.is_empty()`
89 = note: `-D len-zero` implied by `-D warnings`
91 error: length comparison to zero
94 160 | if with_is_empty.len() == 0 {
95 | ^^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is more concise: `with_is_empty.is_empty()`
97 = note: `-D len-zero` implied by `-D warnings`
99 error: length comparison to zero
100 --> len_zero.rs:172:8
102 172 | if b.len() != 0 {
103 | ^^^^^^^^^^^^ help: using `is_empty` is more concise: `!b.is_empty()`
105 = note: `-D len-zero` implied by `-D warnings`
107 error: aborting due to 11 previous errors
109 error: Could not compile `clippy_tests`.
111 To learn more, run the command again with --verbose.