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 authored Nov 11, 2020
1 parent f3e985d commit af3b1f4
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 @@ -3060,7 +3060,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 af3b1f4

Please sign in to comment.