@@ -11,49 +11,43 @@ LL | | }
1111error: called `filter(..).next()` on an `Iterator`. This is more succinctly expressed by calling `.find(..)` instead.
1212 --> $DIR/methods.rs:126:13
1313 |
14- LL | let _ = v.iter().filter(|&x| *x < 0).next();
15- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `v.iter().find(|&x| *x < 0)`
16- |
17- = note: `-D clippy::filter-next` implied by `-D warnings`
18-
19- error: called `filter(..).next()` on an `Iterator`. This is more succinctly expressed by calling `.find(..)` instead.
20- --> $DIR/methods.rs:129:13
21- |
2214LL | let _ = v.iter().filter(|&x| {
2315 | _____________^
2416LL | | *x < 0
2517LL | | }
2618LL | | ).next();
2719 | |___________________________^
20+ |
21+ = note: `-D clippy::filter-next` implied by `-D warnings`
2822
2923error: called `is_some()` after searching an `Iterator` with find. This is more succinctly expressed by calling `any()`.
30- --> $DIR/methods.rs:146 :22
24+ --> $DIR/methods.rs:143 :22
3125 |
3226LL | let _ = v.iter().find(|&x| *x < 0).is_some();
3327 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `any(|x| *x < 0)`
3428 |
3529 = note: `-D clippy::search-is-some` implied by `-D warnings`
3630
3731error: called `is_some()` after searching an `Iterator` with find. This is more succinctly expressed by calling `any()`.
38- --> $DIR/methods.rs:147 :20
32+ --> $DIR/methods.rs:144 :20
3933 |
4034LL | let _ = (0..1).find(|x| **y == *x).is_some(); // one dereference less
4135 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `any(|x| **y == x)`
4236
4337error: called `is_some()` after searching an `Iterator` with find. This is more succinctly expressed by calling `any()`.
44- --> $DIR/methods.rs:148 :20
38+ --> $DIR/methods.rs:145 :20
4539 |
4640LL | let _ = (0..1).find(|x| *x == 0).is_some();
4741 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `any(|x| x == 0)`
4842
4943error: called `is_some()` after searching an `Iterator` with find. This is more succinctly expressed by calling `any()`.
50- --> $DIR/methods.rs:149 :22
44+ --> $DIR/methods.rs:146 :22
5145 |
5246LL | let _ = v.iter().find(|x| **x == 0).is_some();
5347 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `any(|x| *x == 0)`
5448
5549error: called `is_some()` after searching an `Iterator` with find. This is more succinctly expressed by calling `any()`.
56- --> $DIR/methods.rs:152 :13
50+ --> $DIR/methods.rs:149 :13
5751 |
5852LL | let _ = v.iter().find(|&x| {
5953 | _____________^
@@ -63,13 +57,13 @@ LL | | ).is_some();
6357 | |______________________________^
6458
6559error: called `is_some()` after searching an `Iterator` with position. This is more succinctly expressed by calling `any()`.
66- --> $DIR/methods.rs:158 :22
60+ --> $DIR/methods.rs:155 :22
6761 |
6862LL | let _ = v.iter().position(|&x| x < 0).is_some();
6963 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `any(|&x| x < 0)`
7064
7165error: called `is_some()` after searching an `Iterator` with position. This is more succinctly expressed by calling `any()`.
72- --> $DIR/methods.rs:161 :13
66+ --> $DIR/methods.rs:158 :13
7367 |
7468LL | let _ = v.iter().position(|&x| {
7569 | _____________^
@@ -79,13 +73,13 @@ LL | | ).is_some();
7973 | |______________________________^
8074
8175error: called `is_some()` after searching an `Iterator` with rposition. This is more succinctly expressed by calling `any()`.
82- --> $DIR/methods.rs:167 :22
76+ --> $DIR/methods.rs:164 :22
8377 |
8478LL | let _ = v.iter().rposition(|&x| x < 0).is_some();
8579 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `any(|&x| x < 0)`
8680
8781error: called `is_some()` after searching an `Iterator` with rposition. This is more succinctly expressed by calling `any()`.
88- --> $DIR/methods.rs:170 :13
82+ --> $DIR/methods.rs:167 :13
8983 |
9084LL | let _ = v.iter().rposition(|&x| {
9185 | _____________^
@@ -94,5 +88,5 @@ LL | | }
9488LL | | ).is_some();
9589 | |______________________________^
9690
97- error: aborting due to 12 previous errors
91+ error: aborting due to 11 previous errors
9892
0 commit comments