fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
483 B11 linesraw
1error: called `filter(..).next()` on an `Iterator`. This is more succinctly expressed by calling `.find(..)` instead
2  --> $DIR/methods_fixable.rs:9:13
3   |
4LL |     let _ = v.iter().filter(|&x| *x < 0).next();
5   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `v.iter().find(|&x| *x < 0)`
6   |
7   = note: `-D clippy::filter-next` implied by `-D warnings`
8   = help: to override `-D warnings` add `#[allow(clippy::filter_next)]`
9
10error: aborting due to previous error
11