Skip to content

Commit 2d4d275

Browse files
committed
change |&x| to |x| in stderr file
1 parent 86f7347 commit 2d4d275

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/ui/methods.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ LL | let _ = v.iter().find(|&x| *x < 0).is_some();
155155
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
156156
|
157157
= note: `-D clippy::search-is-some` implied by `-D warnings`
158-
= note: replace `find(|&x| *x < 0).is_some()` with `any(|&x| *x < 0)`
158+
= note: replace `find(|&x| *x < 0).is_some()` with `any(|x| *x < 0)`
159159

160160
error: called `is_some()` after searching an `Iterator` with find. This is more succinctly expressed by calling `any()`.
161161
--> $DIR/methods.rs:236:13

0 commit comments

Comments
 (0)