mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-14 01:25:54 +00:00
c2c73189c8
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
12 lines
467 B
Plaintext
12 lines
467 B
Plaintext
error: called `is_some()` after searching an `Iterator` with `find`
|
|
--> $DIR/ice-9041.rs:5:19
|
|
|
|
|
LL | things.iter().find(|p| is_thing_ready(p)).is_some()
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `any()` instead: `any(|p| is_thing_ready(&p))`
|
|
|
|
|
= note: `-D clippy::search-is-some` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::search_is_some)]`
|
|
|
|
error: aborting due to 1 previous error
|
|
|