2020-11-11 00:48:01 -06:00
|
|
|
error: called `is_some()` after searching an `Iterator` with `find`
|
2020-10-17 16:28:00 -05:00
|
|
|
--> $DIR/search_is_some.rs:13:13
|
|
|
|
|
|
|
|
|
LL | let _ = v.iter().find(|&x| {
|
|
|
|
| _____________^
|
|
|
|
LL | | *x < 0
|
|
|
|
LL | | }
|
|
|
|
LL | | ).is_some();
|
|
|
|
| |______________________________^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::search-is-some` implied by `-D warnings`
|
2020-11-07 01:21:22 -06:00
|
|
|
= help: this is more succinctly expressed by calling `any()`
|
2020-10-17 16:28:00 -05:00
|
|
|
|
2020-11-11 00:48:01 -06:00
|
|
|
error: called `is_some()` after searching an `Iterator` with `position`
|
2020-10-17 16:28:00 -05:00
|
|
|
--> $DIR/search_is_some.rs:19:13
|
|
|
|
|
|
|
|
|
LL | let _ = v.iter().position(|&x| {
|
|
|
|
| _____________^
|
|
|
|
LL | | x < 0
|
|
|
|
LL | | }
|
|
|
|
LL | | ).is_some();
|
|
|
|
| |______________________________^
|
2020-11-07 01:21:22 -06:00
|
|
|
|
|
|
|
|
= help: this is more succinctly expressed by calling `any()`
|
2020-10-17 16:28:00 -05:00
|
|
|
|
2020-11-11 00:48:01 -06:00
|
|
|
error: called `is_some()` after searching an `Iterator` with `rposition`
|
2020-10-17 16:28:00 -05:00
|
|
|
--> $DIR/search_is_some.rs:25:13
|
|
|
|
|
|
|
|
|
LL | let _ = v.iter().rposition(|&x| {
|
|
|
|
| _____________^
|
|
|
|
LL | | x < 0
|
|
|
|
LL | | }
|
|
|
|
LL | | ).is_some();
|
|
|
|
| |______________________________^
|
2020-11-07 01:21:22 -06:00
|
|
|
|
|
|
|
|
= help: this is more succinctly expressed by calling `any()`
|
2020-10-17 16:28:00 -05:00
|
|
|
|
2020-11-11 00:48:01 -06:00
|
|
|
error: aborting due to 3 previous errors
|
2020-10-17 16:28:00 -05:00
|
|
|
|