chore: fix needless borrows found by clippy

1 job for main in 18 seconds (queued for 3 seconds)