1 use crate::utils::span_lint_and_help;
3 use rustc_lint::LateContext;
5 use super::SUSPICIOUS_MAP;
7 pub(super) fn check(cx: &LateContext<'_>, expr: &hir::Expr<'_>) {
12 "this call to `map()` won't have an effect on the call to `count()`",
14 "make sure you did not confuse `map` with `filter` or `for_each`",