1 error: called `is_some()` after searching an `Iterator` with `find`
2 --> $DIR/search_is_some.rs:14:13
4 LL | let _ = v.iter().find(|&x| {
9 | |______________________________^
11 = note: `-D clippy::search-is-some` implied by `-D warnings`
12 = help: this is more succinctly expressed by calling `any()`
14 error: called `is_some()` after searching an `Iterator` with `position`
15 --> $DIR/search_is_some.rs:20:13
17 LL | let _ = v.iter().position(|&x| {
22 | |______________________________^
24 = help: this is more succinctly expressed by calling `any()`
26 error: called `is_some()` after searching an `Iterator` with `rposition`
27 --> $DIR/search_is_some.rs:26:13
29 LL | let _ = v.iter().rposition(|&x| {
34 | |______________________________^
36 = help: this is more succinctly expressed by calling `any()`
38 error: called `is_some()` after searching an `Iterator` with `find`
39 --> $DIR/search_is_some.rs:41:20
41 LL | let _ = (0..1).find(some_closure).is_some();
42 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `any()` instead: `any(some_closure)`
44 error: called `is_none()` after searching an `Iterator` with `find`
45 --> $DIR/search_is_some.rs:51:13
47 LL | let _ = v.iter().find(|&x| {
52 | |______________________________^
54 = help: this is more succinctly expressed by calling `any()` with negation
56 error: called `is_none()` after searching an `Iterator` with `position`
57 --> $DIR/search_is_some.rs:57:13
59 LL | let _ = v.iter().position(|&x| {
64 | |______________________________^
66 = help: this is more succinctly expressed by calling `any()` with negation
68 error: called `is_none()` after searching an `Iterator` with `rposition`
69 --> $DIR/search_is_some.rs:63:13
71 LL | let _ = v.iter().rposition(|&x| {
76 | |______________________________^
78 = help: this is more succinctly expressed by calling `any()` with negation
80 error: called `is_none()` after searching an `Iterator` with `find`
81 --> $DIR/search_is_some.rs:78:13
83 LL | let _ = (0..1).find(some_closure).is_none();
84 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `!_.any()` instead: `!(0..1).any(some_closure)`
86 error: aborting due to 8 previous errors