|
1 | 1 | error: length comparison to zero |
2 | | - --> $DIR/len_zero.rs:61:8 |
| 2 | + --> $DIR/len_zero.rs:84:8 |
3 | 3 | | |
4 | 4 | LL | if x.len() == 0 { |
5 | 5 | | ^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `x.is_empty()` |
6 | 6 | | |
7 | 7 | = note: `-D clippy::len-zero` implied by `-D warnings` |
8 | 8 |
|
9 | 9 | error: length comparison to zero |
10 | | - --> $DIR/len_zero.rs:65:8 |
| 10 | + --> $DIR/len_zero.rs:88:8 |
11 | 11 | | |
12 | 12 | LL | if "".len() == 0 {} |
13 | 13 | | ^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `"".is_empty()` |
14 | 14 |
|
| 15 | +error: comparison to empty slice |
| 16 | + --> $DIR/len_zero.rs:97:20 |
| 17 | + | |
| 18 | +LL | println!("{}", *s1 == ""); |
| 19 | + | ^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `s1.is_empty()` |
| 20 | + | |
| 21 | + = note: `-D clippy::comparison-to-empty` implied by `-D warnings` |
| 22 | + |
| 23 | +error: comparison to empty slice |
| 24 | + --> $DIR/len_zero.rs:98:20 |
| 25 | + | |
| 26 | +LL | println!("{}", **s2 == ""); |
| 27 | + | ^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `s2.is_empty()` |
| 28 | + |
| 29 | +error: comparison to empty slice |
| 30 | + --> $DIR/len_zero.rs:99:20 |
| 31 | + | |
| 32 | +LL | println!("{}", ***s3 == ""); |
| 33 | + | ^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `s3.is_empty()` |
| 34 | + |
| 35 | +error: comparison to empty slice |
| 36 | + --> $DIR/len_zero.rs:100:20 |
| 37 | + | |
| 38 | +LL | println!("{}", ****s4 == ""); |
| 39 | + | ^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `s4.is_empty()` |
| 40 | + |
| 41 | +error: comparison to empty slice |
| 42 | + --> $DIR/len_zero.rs:101:20 |
| 43 | + | |
| 44 | +LL | println!("{}", *****s5 == ""); |
| 45 | + | ^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `s5.is_empty()` |
| 46 | + |
| 47 | +error: comparison to empty slice |
| 48 | + --> $DIR/len_zero.rs:102:20 |
| 49 | + | |
| 50 | +LL | println!("{}", ******(s6) == ""); |
| 51 | + | ^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `(s6).is_empty()` |
| 52 | + |
| 53 | +error: comparison to empty slice |
| 54 | + --> $DIR/len_zero.rs:105:20 |
| 55 | + | |
| 56 | +LL | println!("{}", &**d2s == ""); |
| 57 | + | ^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `(**d2s).is_empty()` |
| 58 | + |
15 | 59 | error: length comparison to zero |
16 | | - --> $DIR/len_zero.rs:80:8 |
| 60 | + --> $DIR/len_zero.rs:120:8 |
17 | 61 | | |
18 | 62 | LL | if has_is_empty.len() == 0 { |
19 | 63 | | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `has_is_empty.is_empty()` |
20 | 64 |
|
21 | 65 | error: length comparison to zero |
22 | | - --> $DIR/len_zero.rs:83:8 |
| 66 | + --> $DIR/len_zero.rs:123:8 |
23 | 67 | | |
24 | 68 | LL | if has_is_empty.len() != 0 { |
25 | 69 | | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!has_is_empty.is_empty()` |
26 | 70 |
|
27 | 71 | error: length comparison to zero |
28 | | - --> $DIR/len_zero.rs:86:8 |
| 72 | + --> $DIR/len_zero.rs:126:8 |
29 | 73 | | |
30 | 74 | LL | if has_is_empty.len() > 0 { |
31 | 75 | | ^^^^^^^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!has_is_empty.is_empty()` |
32 | 76 |
|
33 | 77 | error: length comparison to one |
34 | | - --> $DIR/len_zero.rs:89:8 |
| 78 | + --> $DIR/len_zero.rs:129:8 |
35 | 79 | | |
36 | 80 | LL | if has_is_empty.len() < 1 { |
37 | 81 | | ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `has_is_empty.is_empty()` |
38 | 82 |
|
39 | 83 | error: length comparison to one |
40 | | - --> $DIR/len_zero.rs:92:8 |
| 84 | + --> $DIR/len_zero.rs:132:8 |
41 | 85 | | |
42 | 86 | LL | if has_is_empty.len() >= 1 { |
43 | 87 | | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!has_is_empty.is_empty()` |
44 | 88 |
|
45 | 89 | error: length comparison to zero |
46 | | - --> $DIR/len_zero.rs:103:8 |
| 90 | + --> $DIR/len_zero.rs:143:8 |
47 | 91 | | |
48 | 92 | LL | if 0 == has_is_empty.len() { |
49 | 93 | | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `has_is_empty.is_empty()` |
50 | 94 |
|
51 | 95 | error: length comparison to zero |
52 | | - --> $DIR/len_zero.rs:106:8 |
| 96 | + --> $DIR/len_zero.rs:146:8 |
53 | 97 | | |
54 | 98 | LL | if 0 != has_is_empty.len() { |
55 | 99 | | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!has_is_empty.is_empty()` |
56 | 100 |
|
57 | 101 | error: length comparison to zero |
58 | | - --> $DIR/len_zero.rs:109:8 |
| 102 | + --> $DIR/len_zero.rs:149:8 |
59 | 103 | | |
60 | 104 | LL | if 0 < has_is_empty.len() { |
61 | 105 | | ^^^^^^^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!has_is_empty.is_empty()` |
62 | 106 |
|
63 | 107 | error: length comparison to one |
64 | | - --> $DIR/len_zero.rs:112:8 |
| 108 | + --> $DIR/len_zero.rs:152:8 |
65 | 109 | | |
66 | 110 | LL | if 1 <= has_is_empty.len() { |
67 | 111 | | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!has_is_empty.is_empty()` |
68 | 112 |
|
69 | 113 | error: length comparison to one |
70 | | - --> $DIR/len_zero.rs:115:8 |
| 114 | + --> $DIR/len_zero.rs:155:8 |
71 | 115 | | |
72 | 116 | LL | if 1 > has_is_empty.len() { |
73 | 117 | | ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `has_is_empty.is_empty()` |
74 | 118 |
|
75 | 119 | error: length comparison to zero |
76 | | - --> $DIR/len_zero.rs:129:8 |
| 120 | + --> $DIR/len_zero.rs:169:8 |
77 | 121 | | |
78 | 122 | LL | if with_is_empty.len() == 0 { |
79 | 123 | | ^^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `with_is_empty.is_empty()` |
80 | 124 |
|
81 | 125 | error: length comparison to zero |
82 | | - --> $DIR/len_zero.rs:142:8 |
| 126 | + --> $DIR/len_zero.rs:182:8 |
83 | 127 | | |
84 | 128 | LL | if b.len() != 0 {} |
85 | 129 | | ^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!b.is_empty()` |
86 | 130 |
|
87 | | -error: aborting due to 14 previous errors |
| 131 | +error: aborting due to 21 previous errors |
88 | 132 |
|
0 commit comments