Enable `clippy::unnecessary_filter_map` (#8738)

This PR enables the
[`clippy::unnecessary_filter_map`](https://rust-lang.github.io/rust-clippy/master/index.html#/unnecessary_filter_map)
rule and fixes the outstanding violations.

Release Notes:

- N/A
f79f56f8b4Marshall Bowers committed on 3/3/2024, 1:16:54 AM· committed by GitHubparenta17c207
7 files changedLine totals unavailable