diff options
| author | bors <bors@rust-lang.org> | 2022-07-07 23:39:12 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-07-07 23:39:12 +0000 |
| commit | 54feac18d1ad9cc5af1f71dfb34baa32f99630ae (patch) | |
| tree | 1c011cf4638df7923a0d85603abbdbf5a2a143e7 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs | |
| parent | 2058b927776201244aa903451674275ff17e1d15 (diff) | |
| parent | 307b8cd82537b5ac46da2f04cced4e4362835757 (diff) | |
| download | rust-54feac18d1ad9cc5af1f71dfb34baa32f99630ae.tar.gz rust-54feac18d1ad9cc5af1f71dfb34baa32f99630ae.zip | |
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
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions
