]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | error: called `filter(..).next()` on an `Iterator`. This is more succinctly expressed by calling `.find(..)` instead |
2 | --> $DIR/methods_fixable.rs:10:13 | |
3 | | | |
4 | LL | let _ = v.iter().filter(|&x| *x < 0).next(); | |
5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `v.iter().find(|&x| *x < 0)` | |
6 | | | |
7 | = note: `-D clippy::filter-next` implied by `-D warnings` | |
8 | ||
9 | error: aborting due to previous error | |
10 |