Enable `clippy::needless_option_as_deref` (#8775)

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

Release Notes:

- N/A
56f0418c93Marshall Bowers committed on 3/3/2024, 4:16:27 PM· committed by GitHubparent2964a01
2 files changedLine totals unavailable