Enable `clippy::redundant_guards` (#8770)

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

Release Notes:

- N/A
6685d3ac97Marshall Bowers committed on 3/3/2024, 3:43:13 PM· committed by GitHubparentbfc6485
2 files changedLine totals unavailable