2020-11-11 06:48:01 +00:00
|
|
|
error: called `is_some()` after searching an `Iterator` with `find`
|
2021-03-20 13:30:45 +00:00
|
|
|
--> $DIR/search_is_some.rs:14:13
|
2020-10-17 21:28:00 +00:00
|
|
|
|
|
|
|
|
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 07:21:22 +00:00
|
|
|
= help: this is more succinctly expressed by calling `any()`
|
2020-10-17 21:28:00 +00:00
|
|
|
|
2020-11-11 06:48:01 +00:00
|
|
|
error: called `is_some()` after searching an `Iterator` with `position`
|
2021-03-20 13:30:45 +00:00
|
|
|
--> $DIR/search_is_some.rs:20:13
|
2020-10-17 21:28:00 +00:00
|
|
|
|
|
|
|
|
LL | let _ = v.iter().position(|&x| {
|
|
|
|
| _____________^
|
|
|
|
LL | | x < 0
|
|
|
|
LL | | }
|
|
|
|
LL | | ).is_some();
|
|
|
|
| |______________________________^
|
2020-11-07 07:21:22 +00:00
|
|
|
|
|
|
|
|
= help: this is more succinctly expressed by calling `any()`
|
2020-10-17 21:28:00 +00:00
|
|
|
|
2020-11-11 06:48:01 +00:00
|
|
|
error: called `is_some()` after searching an `Iterator` with `rposition`
|
2021-03-20 13:30:45 +00:00
|
|
|
--> $DIR/search_is_some.rs:26:13
|
2020-10-17 21:28:00 +00:00
|
|
|
|
|
|
|
|
LL | let _ = v.iter().rposition(|&x| {
|
|
|
|
| _____________^
|
|
|
|
LL | | x < 0
|
|
|
|
LL | | }
|
|
|
|
LL | | ).is_some();
|
|
|
|
| |______________________________^
|
2020-11-07 07:21:22 +00:00
|
|
|
|
|
|
|
|
= help: this is more succinctly expressed by calling `any()`
|
2020-10-17 21:28:00 +00:00
|
|
|
|
2021-03-20 13:30:45 +00:00
|
|
|
error: called `is_none()` after searching an `Iterator` with `find`
|
|
|
|
--> $DIR/search_is_some.rs:48:13
|
|
|
|
|
|
|
|
|
LL | let _ = v.iter().find(|&x| {
|
|
|
|
| _____________^
|
|
|
|
LL | | *x < 0
|
|
|
|
LL | | }
|
|
|
|
LL | | ).is_none();
|
|
|
|
| |______________________________^
|
|
|
|
|
|
|
|
|
= help: this is more succinctly expressed by calling `any()` with negation
|
|
|
|
|
|
|
|
error: called `is_none()` after searching an `Iterator` with `position`
|
|
|
|
--> $DIR/search_is_some.rs:54:13
|
|
|
|
|
|
|
|
|
LL | let _ = v.iter().position(|&x| {
|
|
|
|
| _____________^
|
|
|
|
LL | | x < 0
|
|
|
|
LL | | }
|
|
|
|
LL | | ).is_none();
|
|
|
|
| |______________________________^
|
|
|
|
|
|
|
|
|
= help: this is more succinctly expressed by calling `any()` with negation
|
|
|
|
|
|
|
|
error: called `is_none()` after searching an `Iterator` with `rposition`
|
|
|
|
--> $DIR/search_is_some.rs:60:13
|
|
|
|
|
|
|
|
|
LL | let _ = v.iter().rposition(|&x| {
|
|
|
|
| _____________^
|
|
|
|
LL | | x < 0
|
|
|
|
LL | | }
|
|
|
|
LL | | ).is_none();
|
|
|
|
| |______________________________^
|
|
|
|
|
|
|
|
|
= help: this is more succinctly expressed by calling `any()` with negation
|
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
2020-10-17 21:28:00 +00:00
|
|
|
|