@@ -22,13 +22,13 @@ error: length comparison to zero
22
22
--> $DIR/len_zero.rs:83:8
23
23
|
24
24
LL | if has_is_empty.len() != 0 {
25
- | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `!has_is_empty.is_empty()`
25
+ | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `! is_empty` is clearer and more explicit: `!has_is_empty.is_empty()`
26
26
27
27
error: length comparison to zero
28
28
--> $DIR/len_zero.rs:86:8
29
29
|
30
30
LL | if has_is_empty.len() > 0 {
31
- | ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `!has_is_empty.is_empty()`
31
+ | ^^^^^^^^^^^^^^^^^^^^^^ help: using `! is_empty` is clearer and more explicit: `!has_is_empty.is_empty()`
32
32
33
33
error: length comparison to one
34
34
--> $DIR/len_zero.rs:89:8
@@ -40,7 +40,7 @@ error: length comparison to one
40
40
--> $DIR/len_zero.rs:92:8
41
41
|
42
42
LL | if has_is_empty.len() >= 1 {
43
- | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `!has_is_empty.is_empty()`
43
+ | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `! is_empty` is clearer and more explicit: `!has_is_empty.is_empty()`
44
44
45
45
error: length comparison to zero
46
46
--> $DIR/len_zero.rs:103:8
@@ -52,19 +52,19 @@ error: length comparison to zero
52
52
--> $DIR/len_zero.rs:106:8
53
53
|
54
54
LL | if 0 != has_is_empty.len() {
55
- | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `!has_is_empty.is_empty()`
55
+ | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `! is_empty` is clearer and more explicit: `!has_is_empty.is_empty()`
56
56
57
57
error: length comparison to zero
58
58
--> $DIR/len_zero.rs:109:8
59
59
|
60
60
LL | if 0 < has_is_empty.len() {
61
- | ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `!has_is_empty.is_empty()`
61
+ | ^^^^^^^^^^^^^^^^^^^^^^ help: using `! is_empty` is clearer and more explicit: `!has_is_empty.is_empty()`
62
62
63
63
error: length comparison to one
64
64
--> $DIR/len_zero.rs:112:8
65
65
|
66
66
LL | if 1 <= has_is_empty.len() {
67
- | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `!has_is_empty.is_empty()`
67
+ | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `! is_empty` is clearer and more explicit: `!has_is_empty.is_empty()`
68
68
69
69
error: length comparison to one
70
70
--> $DIR/len_zero.rs:115:8
@@ -82,7 +82,7 @@ error: length comparison to zero
82
82
--> $DIR/len_zero.rs:142:8
83
83
|
84
84
LL | if b.len() != 0 {}
85
- | ^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `!b.is_empty()`
85
+ | ^^^^^^^^^^^^ help: using `! is_empty` is clearer and more explicit: `!b.is_empty()`
86
86
87
87
error: aborting due to 14 previous errors
88
88
0 commit comments