Enable `clippy::bool_comparison` (#8769)

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

Release Notes:

- N/A
bfc648553fMarshall Bowers committed on 3/3/2024, 3:34:30 PM· committed by GitHubparent5fad319
2 files changedLine totals unavailable