Enable `clippy::unnecessary_to_owned` (#8908)

lint for `unnecessary_to_owned` and fix the sole violation in the
codebase
bca98caa07Kirpal Grewal committed on 3/5/2024, 10:28:58 PM· committed by GitHubparentb68a277
2 files changedLine totals unavailable