2017-02-07 20:05:30 +00:00
|
|
|
error: length comparison to zero
|
2019-04-16 19:46:07 +00:00
|
|
|
--> $DIR/len_zero.rs:61:8
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | if x.len() == 0 {
|
|
|
|
| ^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `x.is_empty()`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::len-zero` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: length comparison to zero
|
2019-04-16 19:46:07 +00:00
|
|
|
--> $DIR/len_zero.rs:65:8
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | if "".len() == 0 {}
|
|
|
|
| ^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `"".is_empty()`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: length comparison to zero
|
2019-04-16 19:46:07 +00:00
|
|
|
--> $DIR/len_zero.rs:80:8
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | if has_is_empty.len() == 0 {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `has_is_empty.is_empty()`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: length comparison to zero
|
2019-04-16 19:46:07 +00:00
|
|
|
--> $DIR/len_zero.rs:83:8
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | if has_is_empty.len() != 0 {
|
2019-08-01 13:20:08 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!has_is_empty.is_empty()`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: length comparison to zero
|
2019-04-16 19:46:07 +00:00
|
|
|
--> $DIR/len_zero.rs:86:8
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | if has_is_empty.len() > 0 {
|
2019-08-01 13:20:08 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!has_is_empty.is_empty()`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2018-05-05 13:01:51 +00:00
|
|
|
error: length comparison to one
|
2019-04-16 19:46:07 +00:00
|
|
|
--> $DIR/len_zero.rs:89:8
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | if has_is_empty.len() < 1 {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `has_is_empty.is_empty()`
|
2018-05-05 13:01:51 +00:00
|
|
|
|
|
|
|
error: length comparison to one
|
2019-04-16 19:46:07 +00:00
|
|
|
--> $DIR/len_zero.rs:92:8
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | if has_is_empty.len() >= 1 {
|
2019-08-01 13:20:08 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!has_is_empty.is_empty()`
|
2018-05-05 13:01:51 +00:00
|
|
|
|
|
|
|
error: length comparison to zero
|
2019-04-16 19:46:07 +00:00
|
|
|
--> $DIR/len_zero.rs:103:8
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | if 0 == has_is_empty.len() {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `has_is_empty.is_empty()`
|
2018-05-05 13:01:51 +00:00
|
|
|
|
|
|
|
error: length comparison to zero
|
2019-04-16 19:46:07 +00:00
|
|
|
--> $DIR/len_zero.rs:106:8
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | if 0 != has_is_empty.len() {
|
2019-08-01 13:20:08 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!has_is_empty.is_empty()`
|
2018-05-05 13:01:51 +00:00
|
|
|
|
|
|
|
error: length comparison to zero
|
2019-04-16 19:46:07 +00:00
|
|
|
--> $DIR/len_zero.rs:109:8
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | if 0 < has_is_empty.len() {
|
2019-08-01 13:20:08 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!has_is_empty.is_empty()`
|
2018-05-05 13:01:51 +00:00
|
|
|
|
|
|
|
error: length comparison to one
|
2019-04-16 19:46:07 +00:00
|
|
|
--> $DIR/len_zero.rs:112:8
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | if 1 <= has_is_empty.len() {
|
2019-08-01 13:20:08 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!has_is_empty.is_empty()`
|
2018-05-05 13:01:51 +00:00
|
|
|
|
|
|
|
error: length comparison to one
|
2019-04-16 19:46:07 +00:00
|
|
|
--> $DIR/len_zero.rs:115:8
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | if 1 > has_is_empty.len() {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `has_is_empty.is_empty()`
|
2018-05-05 13:01:51 +00:00
|
|
|
|
|
|
|
error: length comparison to zero
|
2019-04-16 19:46:07 +00:00
|
|
|
--> $DIR/len_zero.rs:129:8
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | if with_is_empty.len() == 0 {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `with_is_empty.is_empty()`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2017-02-25 03:26:33 +00:00
|
|
|
error: length comparison to zero
|
2019-04-16 19:46:07 +00:00
|
|
|
--> $DIR/len_zero.rs:142:8
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | if b.len() != 0 {}
|
2019-08-01 13:20:08 +00:00
|
|
|
| ^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!b.is_empty()`
|
2017-02-25 03:26:33 +00:00
|
|
|
|
2019-04-16 19:46:07 +00:00
|
|
|
error: aborting due to 14 previous errors
|
2018-01-16 16:06:27 +00:00
|
|
|
|