Enable `clippy::option_as_ref_deref` (#8747)

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

Release Notes:

- N/A
3ab16d8012Marshall Bowers committed on 3/3/2024, 2:36:42 AM· committed by GitHubparentca9d5a2
2 files changedLine totals unavailable