2020-10-25 23:31:25 +00:00
|
|
|
error: comparison to empty slice
|
2023-06-06 20:56:57 +00:00
|
|
|
--> $DIR/comparison_to_empty.rs:9:13
|
2020-10-25 23:31:25 +00:00
|
|
|
|
|
|
|
|
LL | let _ = s == "";
|
|
|
|
| ^^^^^^^ help: using `is_empty` is clearer and more explicit: `s.is_empty()`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::comparison-to-empty` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: comparison to empty slice
|
2023-06-06 20:56:57 +00:00
|
|
|
--> $DIR/comparison_to_empty.rs:10:13
|
2020-10-25 23:31:25 +00:00
|
|
|
|
|
|
|
|
LL | let _ = s != "";
|
|
|
|
| ^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!s.is_empty()`
|
|
|
|
|
|
|
|
error: comparison to empty slice
|
2023-06-06 20:56:57 +00:00
|
|
|
--> $DIR/comparison_to_empty.rs:13:13
|
2020-10-25 23:31:25 +00:00
|
|
|
|
|
|
|
|
LL | let _ = v == [];
|
|
|
|
| ^^^^^^^ help: using `is_empty` is clearer and more explicit: `v.is_empty()`
|
|
|
|
|
|
|
|
error: comparison to empty slice
|
2023-06-06 20:56:57 +00:00
|
|
|
--> $DIR/comparison_to_empty.rs:14:13
|
2020-10-25 23:31:25 +00:00
|
|
|
|
|
|
|
|
LL | let _ = v != [];
|
|
|
|
| ^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!v.is_empty()`
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|