Update clippy_lints/src/methods/mod.rs
Co-authored-by: Philipp Krones <hello@philkrones.com>
This commit is contained in:
parent
fd303132a2
commit
56d252c53d
@ -3053,7 +3053,7 @@ fn lint_search_is_some<'tcx>(
|
|||||||
// lint if caller of search is an Iterator
|
// lint if caller of search is an Iterator
|
||||||
if match_trait_method(cx, &is_some_args[0], &paths::ITERATOR) {
|
if match_trait_method(cx, &is_some_args[0], &paths::ITERATOR) {
|
||||||
let msg = format!(
|
let msg = format!(
|
||||||
"called `is_some()` after searching an `Iterator` with {}",
|
"called `is_some()` after searching an `Iterator` with `{}`",
|
||||||
search_method
|
search_method
|
||||||
);
|
);
|
||||||
let hint = "this is more succinctly expressed by calling `any()`";
|
let hint = "this is more succinctly expressed by calling `any()`";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user