@@ -19,7 +19,7 @@ LL | | }
1919 | |_^
2020
2121error: item `HasIsEmpty` has a public `len` method but a private `is_empty` method
22- --> $DIR/len_zero.rs:89 :1
22+ --> $DIR/len_zero.rs:90 :1
2323 |
2424LL | / impl HasIsEmpty {
2525LL | | pub fn len(self: &Self) -> isize {
@@ -31,7 +31,7 @@ LL | | }
3131 | |_^
3232
3333error: item `HasWrongIsEmpty` has a public `len` method but no corresponding `is_empty` method
34- --> $DIR/len_zero.rs:118 :1
34+ --> $DIR/len_zero.rs:119 :1
3535 |
3636LL | / impl HasWrongIsEmpty {
3737LL | | pub fn len(self: &Self) -> isize {
@@ -43,93 +43,93 @@ LL | | }
4343 | |_^
4444
4545error: length comparison to zero
46- --> $DIR/len_zero.rs:139 :8
46+ --> $DIR/len_zero.rs:140 :8
4747 |
4848LL | if x.len() == 0 {
4949 | ^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `x.is_empty()`
5050 |
5151 = note: `-D clippy::len-zero` implied by `-D warnings`
5252
5353error: length comparison to zero
54- --> $DIR/len_zero.rs:143 :8
54+ --> $DIR/len_zero.rs:144 :8
5555 |
5656LL | if "".len() == 0 {}
5757 | ^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `"".is_empty()`
5858
5959error: length comparison to zero
60- --> $DIR/len_zero.rs:158 :8
60+ --> $DIR/len_zero.rs:159 :8
6161 |
6262LL | if has_is_empty.len() == 0 {
6363 | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `has_is_empty.is_empty()`
6464
6565error: length comparison to zero
66- --> $DIR/len_zero.rs:161 :8
66+ --> $DIR/len_zero.rs:162 :8
6767 |
6868LL | if has_is_empty.len() != 0 {
6969 | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `!has_is_empty.is_empty()`
7070
7171error: length comparison to zero
72- --> $DIR/len_zero.rs:164 :8
72+ --> $DIR/len_zero.rs:165 :8
7373 |
7474LL | if has_is_empty.len() > 0 {
7575 | ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `!has_is_empty.is_empty()`
7676
7777error: length comparison to one
78- --> $DIR/len_zero.rs:167 :8
78+ --> $DIR/len_zero.rs:168 :8
7979 |
8080LL | if has_is_empty.len() < 1 {
8181 | ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `has_is_empty.is_empty()`
8282
8383error: length comparison to one
84- --> $DIR/len_zero.rs:170 :8
84+ --> $DIR/len_zero.rs:171 :8
8585 |
8686LL | if has_is_empty.len() >= 1 {
8787 | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `!has_is_empty.is_empty()`
8888
8989error: length comparison to zero
90- --> $DIR/len_zero.rs:181 :8
90+ --> $DIR/len_zero.rs:182 :8
9191 |
9292LL | if 0 == has_is_empty.len() {
9393 | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `has_is_empty.is_empty()`
9494
9595error: length comparison to zero
96- --> $DIR/len_zero.rs:184 :8
96+ --> $DIR/len_zero.rs:185 :8
9797 |
9898LL | if 0 != has_is_empty.len() {
9999 | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `!has_is_empty.is_empty()`
100100
101101error: length comparison to zero
102- --> $DIR/len_zero.rs:187 :8
102+ --> $DIR/len_zero.rs:188 :8
103103 |
104104LL | if 0 < has_is_empty.len() {
105105 | ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `!has_is_empty.is_empty()`
106106
107107error: length comparison to one
108- --> $DIR/len_zero.rs:190 :8
108+ --> $DIR/len_zero.rs:191 :8
109109 |
110110LL | if 1 <= has_is_empty.len() {
111111 | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `!has_is_empty.is_empty()`
112112
113113error: length comparison to one
114- --> $DIR/len_zero.rs:193 :8
114+ --> $DIR/len_zero.rs:194 :8
115115 |
116116LL | if 1 > has_is_empty.len() {
117117 | ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `has_is_empty.is_empty()`
118118
119119error: length comparison to zero
120- --> $DIR/len_zero.rs:207 :8
120+ --> $DIR/len_zero.rs:208 :8
121121 |
122122LL | if with_is_empty.len() == 0 {
123123 | ^^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `with_is_empty.is_empty()`
124124
125125error: length comparison to zero
126- --> $DIR/len_zero.rs:220 :8
126+ --> $DIR/len_zero.rs:221 :8
127127 |
128128LL | if b.len() != 0 {}
129129 | ^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `!b.is_empty()`
130130
131131error: trait `DependsOnFoo` has a `len` method but no (possibly inherited) `is_empty` method
132- --> $DIR/len_zero.rs:226 :1
132+ --> $DIR/len_zero.rs:227 :1
133133 |
134134LL | / pub trait DependsOnFoo: Foo {
135135LL | | fn len(&mut self) -> usize;
0 commit comments