patch_sync: Clean up clippy lints

Fixes all the latest clippy lints in patch_sync. This CL should
provide no functional changes if implemented correctly. Most of
these changes are moving values into AsRef generic parameters,
rather than passing as a ref.

BUG=b:333741962
TEST=cargo clippy; cargo test

Change-Id: I232a21008ca2bbe7c85a6f4b01b3267c0aab47fc
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/5443986
Tested-by: Jordan Abrahams-Whitehead <[email protected]>
Reviewed-by: George Burgess <[email protected]>
Commit-Queue: Jordan Abrahams-Whitehead <[email protected]>
2 files changed