From c9c031a42596d2d91aff5ba6cd02324d7a35fe5b Mon Sep 17 00:00:00 2001 From: Bo Chen Date: Thu, 10 Feb 2022 18:42:19 -0800 Subject: [PATCH] test_infra: Fix clippy issue on aarch64 error: unused variable: `fw_path` --> test_infra/src/lib.rs:837:9 | 837 | fw_path: &str, | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fw_path` | = note: `-D unused-variables` implied by `-D warnings` Signed-off-by: Bo Chen --- test_infra/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test_infra/src/lib.rs b/test_infra/src/lib.rs index 4d1f20508..c1649ddc3 100644 --- a/test_infra/src/lib.rs +++ b/test_infra/src/lib.rs @@ -834,7 +834,7 @@ impl Guest { pub fn api_create_body( &self, cpu_count: u8, - fw_path: &str, + _fw_path: &str, _kernel_path: &str, _kernel_cmd: &str, ) -> String { @@ -842,7 +842,7 @@ impl Guest { format! {"{{\"cpus\":{{\"boot_vcpus\":{},\"max_vcpus\":{}}},\"kernel\":{{\"path\":\"{}\"}},\"cmdline\":{{\"args\": \"\"}},\"net\":[{{\"ip\":\"{}\", \"mask\":\"255.255.255.0\", \"mac\":\"{}\"}}], \"disks\":[{{\"path\":\"{}\"}}, {{\"path\":\"{}\"}}]}}", cpu_count, cpu_count, - fw_path, + _fw_path, self.network.host_ip, self.network.guest_mac, self.disk_config.disk(DiskType::OperatingSystem).unwrap().as_str(),