Enable `clippy::redundant_locals` (#8750)

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

Release Notes:

- N/A
d19957b705Marshall Bowers committed on 3/3/2024, 2:57:40 AM· committed by GitHubparent328c8a9
6 files changedLine totals unavailable