We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 043cf97 commit e89ad4bCopy full SHA for e89ad4b
clippy_lints/src/methods/mod.rs
@@ -3059,7 +3059,7 @@ fn lint_filter_map_map<'tcx>(
3059
_filter_args: &'tcx [hir::Expr<'_>],
3060
_map_args: &'tcx [hir::Expr<'_>],
3061
) {
3062
- // lint if caller of `.filter().map()` is an Iterator
+ // lint if caller of `.filter_map().map()` is an Iterator
3063
if match_trait_method(cx, expr, &paths::ITERATOR) {
3064
let msg = "called `filter_map(..).map(..)` on an `Iterator`";
3065
let hint = "this is more succinctly expressed by only calling `.filter_map(..)` instead";
0 commit comments