mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 13:13:34 +00:00
change |&x| to |x| in stderr file
This commit is contained in:
parent
86f73473c8
commit
2d4d275519
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue