Skip to content

Commit

Permalink
Update clippy_lints/src/methods/mod.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Philipp Krones <hello@philkrones.com>
  • Loading branch information
rsulli55 and flip1995 committed Nov 11, 2020
1 parent fd30313 commit 56d252c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/methods/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3053,7 +3053,7 @@ fn lint_search_is_some<'tcx>(
// lint if caller of search is an Iterator
if match_trait_method(cx, &is_some_args[0], &paths::ITERATOR) {
let msg = format!(
"called `is_some()` after searching an `Iterator` with {}",
"called `is_some()` after searching an `Iterator` with `{}`",
search_method
);
let hint = "this is more succinctly expressed by calling `any()`";
Expand Down

0 comments on commit 56d252c

Please sign in to comment.