@@ -46,87 +46,87 @@ error: length comparison to zero
46
46
--> $DIR/len_zero.rs:151:8
47
47
|
48
48
151 | if x.len() == 0 {
49
- | ^^^^^^^^^^^^ help: using `is_empty` is more concise : `x.is_empty()`
49
+ | ^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit : `x.is_empty()`
50
50
|
51
51
= note: `-D clippy::len-zero` implied by `-D warnings`
52
52
53
53
error: length comparison to zero
54
54
--> $DIR/len_zero.rs:155:8
55
55
|
56
56
155 | if "".len() == 0 {}
57
- | ^^^^^^^^^^^^^ help: using `is_empty` is more concise : `"".is_empty()`
57
+ | ^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit : `"".is_empty()`
58
58
59
59
error: length comparison to zero
60
60
--> $DIR/len_zero.rs:170:8
61
61
|
62
62
170 | if has_is_empty.len() == 0 {
63
- | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is more concise : `has_is_empty.is_empty()`
63
+ | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit : `has_is_empty.is_empty()`
64
64
65
65
error: length comparison to zero
66
66
--> $DIR/len_zero.rs:173:8
67
67
|
68
68
173 | if has_is_empty.len() != 0 {
69
- | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is more concise : `!has_is_empty.is_empty()`
69
+ | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit : `!has_is_empty.is_empty()`
70
70
71
71
error: length comparison to zero
72
72
--> $DIR/len_zero.rs:176:8
73
73
|
74
74
176 | if has_is_empty.len() > 0 {
75
- | ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is more concise : `!has_is_empty.is_empty()`
75
+ | ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit : `!has_is_empty.is_empty()`
76
76
77
77
error: length comparison to one
78
78
--> $DIR/len_zero.rs:179:8
79
79
|
80
80
179 | if has_is_empty.len() < 1 {
81
- | ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is more concise : `has_is_empty.is_empty()`
81
+ | ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit : `has_is_empty.is_empty()`
82
82
83
83
error: length comparison to one
84
84
--> $DIR/len_zero.rs:182:8
85
85
|
86
86
182 | if has_is_empty.len() >= 1 {
87
- | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is more concise : `!has_is_empty.is_empty()`
87
+ | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit : `!has_is_empty.is_empty()`
88
88
89
89
error: length comparison to zero
90
90
--> $DIR/len_zero.rs:193:8
91
91
|
92
92
193 | if 0 == has_is_empty.len() {
93
- | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is more concise : `has_is_empty.is_empty()`
93
+ | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit : `has_is_empty.is_empty()`
94
94
95
95
error: length comparison to zero
96
96
--> $DIR/len_zero.rs:196:8
97
97
|
98
98
196 | if 0 != has_is_empty.len() {
99
- | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is more concise : `!has_is_empty.is_empty()`
99
+ | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit : `!has_is_empty.is_empty()`
100
100
101
101
error: length comparison to zero
102
102
--> $DIR/len_zero.rs:199:8
103
103
|
104
104
199 | if 0 < has_is_empty.len() {
105
- | ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is more concise : `!has_is_empty.is_empty()`
105
+ | ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit : `!has_is_empty.is_empty()`
106
106
107
107
error: length comparison to one
108
108
--> $DIR/len_zero.rs:202:8
109
109
|
110
110
202 | if 1 <= has_is_empty.len() {
111
- | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is more concise : `!has_is_empty.is_empty()`
111
+ | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit : `!has_is_empty.is_empty()`
112
112
113
113
error: length comparison to one
114
114
--> $DIR/len_zero.rs:205:8
115
115
|
116
116
205 | if 1 > has_is_empty.len() {
117
- | ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is more concise : `has_is_empty.is_empty()`
117
+ | ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit : `has_is_empty.is_empty()`
118
118
119
119
error: length comparison to zero
120
120
--> $DIR/len_zero.rs:219:8
121
121
|
122
122
219 | if with_is_empty.len() == 0 {
123
- | ^^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is more concise : `with_is_empty.is_empty()`
123
+ | ^^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit : `with_is_empty.is_empty()`
124
124
125
125
error: length comparison to zero
126
126
--> $DIR/len_zero.rs:232:8
127
127
|
128
128
232 | if b.len() != 0 {}
129
- | ^^^^^^^^^^^^ help: using `is_empty` is more concise : `!b.is_empty()`
129
+ | ^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit : `!b.is_empty()`
130
130
131
131
error: trait `DependsOnFoo` has a `len` method but no (possibly inherited) `is_empty` method
132
132
--> $DIR/len_zero.rs:238:1
0 commit comments