From 93d8896042a794fd63f11819ecb665c725755c52 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Sun, 15 Mar 2026 02:50:13 -0700 Subject: [PATCH] tests: Fix clippy issue related to unnecessary move error: the borrowed expression implements the required traits --> cloud-hypervisor/tests/integration.rs:8510:32 | 8510 | disk_check_consistency(&test_disk_path, None); | ^^^^^^^^^^^^^^^ help: change this to: `test_disk_path` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args = note: `-D clippy::needless-borrows-for-generic-args` implied by `-D clippy::all` = help: to override `-D clippy::all` add `#[allow(clippy::needless_borrows_for_generic_args)]` error: could not compile `cloud-hypervisor` (test "integration") due to 7 previous errors Signed-off-by: Rob Bradford --- cloud-hypervisor/tests/integration.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud-hypervisor/tests/integration.rs b/cloud-hypervisor/tests/integration.rs index f7345bf8d..730b5b468 100644 --- a/cloud-hypervisor/tests/integration.rs +++ b/cloud-hypervisor/tests/integration.rs @@ -8507,7 +8507,7 @@ mod common_parallel { "Expected zero-flagged regions to increase with sparse=off: before={zero_regions_before}, after={zero_regions_after}" ); - disk_check_consistency(&test_disk_path, None); + disk_check_consistency(test_disk_path, None); } #[test]