mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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 <chen.bo@intel.com>
This commit is contained in:
@@ -834,7 +834,7 @@ impl Guest {
|
|||||||
pub fn api_create_body(
|
pub fn api_create_body(
|
||||||
&self,
|
&self,
|
||||||
cpu_count: u8,
|
cpu_count: u8,
|
||||||
fw_path: &str,
|
_fw_path: &str,
|
||||||
_kernel_path: &str,
|
_kernel_path: &str,
|
||||||
_kernel_cmd: &str,
|
_kernel_cmd: &str,
|
||||||
) -> String {
|
) -> 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\":\"{}\"}}]}}",
|
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,
|
||||||
cpu_count,
|
cpu_count,
|
||||||
fw_path,
|
_fw_path,
|
||||||
self.network.host_ip,
|
self.network.host_ip,
|
||||||
self.network.guest_mac,
|
self.network.guest_mac,
|
||||||
self.disk_config.disk(DiskType::OperatingSystem).unwrap().as_str(),
|
self.disk_config.disk(DiskType::OperatingSystem).unwrap().as_str(),
|
||||||
|
|||||||
Reference in New Issue
Block a user