We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86f7347 commit 2d4d275Copy full SHA for 2d4d275
tests/ui/methods.stderr
@@ -155,7 +155,7 @@ LL | let _ = v.iter().find(|&x| *x < 0).is_some();
155
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
156
|
157
= note: `-D clippy::search-is-some` implied by `-D warnings`
158
- = note: replace `find(|&x| *x < 0).is_some()` with `any(|&x| *x < 0)`
+ = note: replace `find(|&x| *x < 0).is_some()` with `any(|x| *x < 0)`
159
160
error: called `is_some()` after searching an `Iterator` with find. This is more succinctly expressed by calling `any()`.
161
--> $DIR/methods.rs:236:13
0 commit comments