Auto-fixed clippy::needless_borrow

`__CARGO_FIX_YOLO=1` is a hack, but it does help a lot with the tedious fixes where the result is fairly clear.

See https://rust-lang.github.io/rust-clippy/master/index.html#/needless_borrow

```
__CARGO_FIX_YOLO=1 cargo clippy --fix --all-targets --workspace --exclude gstreamer-player --exclude i-slint-backend-linuxkms --exclude uefi-demo --exclude ffmpeg -- -A clippy::all -W clippy::needless_borrow

cargo fmt --all
```
This commit is contained in:
Yuri Astrakhan 2025-02-07 00:49:51 -05:00 committed by Olivier Goffart
parent bcb2953f00
commit 6324b35e94
26 changed files with 59 additions and 59 deletions

View file

@ -24,7 +24,7 @@ fn main() -> Result<(), anyhow::Error> {
let enabled_features = EnabledFeatures::from_env();
let dependencies = cbindgen::gen_all(&root_dir, &output_dir, enabled_features)?;
let dependencies = cbindgen::gen_all(root_dir, output_dir, enabled_features)?;
for path in dependencies {
println!("cargo:rerun-if-changed={}", path.display());
}