2022-07-18 07:39:37 +00:00
|
|
|
error: called `is_some()` after searching an `Iterator` with `find`
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/crashes/ice-9041.rs:5:19
|
2022-07-18 07:39:37 +00:00
|
|
|
|
|
|
|
|
LL | things.iter().find(|p| is_thing_ready(p)).is_some()
|
2024-01-12 21:48:19 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `any(|p| is_thing_ready(&p))`
|
2022-07-18 07:39:37 +00:00
|
|
|
|
|
|
|
|
= note: `-D clippy::search-is-some` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::search_is_some)]`
|
2022-07-18 07:39:37 +00:00
|
|
|
|
2023-11-21 17:08:42 +00:00
|
|
|
error: aborting due to 1 previous error
|
2022-07-18 07:39:37 +00:00
|
|
|
|