rust-clippy/clippy_lints
bors 54feac18d1 Auto merge of #8958 - Alexendoo:simple_filter_map, r=giraffate
Lint simple expressions in `manual_filter_map`, `manual_find_map`

changelog: Lint simple expressions in [`manual_filter_map`], [`manual_find_map`]

The current comparison rules out `.find(|a| a.is_some()).map(|b| b.unwrap())` because `a` being a reference can effect more complicated expressions, this adds a simple check for that case and adds the necessary derefs

There's some overlap with `option_filter_map` so `lint_filter_some_map_unwrap` now returns a `bool` to indicate it linted
2022-07-07 23:39:12 +00:00
..
src Auto merge of #8958 - Alexendoo:simple_filter_map, r=giraffate 2022-07-07 23:39:12 +00:00
Cargo.toml Bump Clippy version -> 0.1.64 2022-06-30 10:29:22 +02:00
README.md

This crate contains Clippy lints. For the main crate, check GitHub.