Add clippy warn needless pass by value

3 jobs for clippy in 8 minutes and 31 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Build
passed #25237
rust-latest

00:06:39

passed #25238
rust-latest-async-std

00:03:04

passed #25239
rust-nightly

00:08:30