]>
Commit | Line | Data |
---|---|---|
064997fb FG |
1 | error: called `is_some()` after searching an `Iterator` with `find` |
2 | --> $DIR/ice-9041.rs:5:19 | |
3 | | | |
4 | LL | things.iter().find(|p| is_thing_ready(p)).is_some() | |
5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `any()` instead: `any(|p| is_thing_ready(&p))` | |
6 | | | |
7 | = note: `-D clippy::search-is-some` implied by `-D warnings` | |
8 | ||
9 | error: aborting due to previous error | |
10 |