diff options
| -rw-r--r-- | tests/ui/methods.stderr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/methods.stderr b/tests/ui/methods.stderr index ba93be5f462..4bf53acf01e 100644 --- a/tests/ui/methods.stderr +++ b/tests/ui/methods.stderr @@ -155,7 +155,7 @@ LL | let _ = v.iter().find(|&x| *x < 0).is_some(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `-D clippy::search-is-some` implied by `-D warnings` - = 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)` error: called `is_some()` after searching an `Iterator` with find. This is more succinctly expressed by calling `any()`. --> $DIR/methods.rs:236:13 |
