Enable `clippy::needless_borrowed_reference` (#8746)

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

Release Notes:

- N/A
ca9d5a2f6bMarshall Bowers committed on 3/3/2024, 2:24:56 AM· committed by GitHubparentbd00aed
2 files changedLine totals unavailable