From a9358b59b73b4c032e4b0935cf4229ba91cef480 Mon Sep 17 00:00:00 2001 From: stevenhorsman Date: Wed, 29 Jan 2025 10:47:29 +0000 Subject: [PATCH] runtime-rs: Allow unused enum field Clippy errors with: ``` error: field `0` is never read --> crates/hypervisor/src/qemu/cmdline_generator.rs:375:25 | 375 | DeviceAlreadyExists(String), // Error when trying to add an existing device | ------------------- ^^^^^^ ``` but this is used when creating the error later, so add an allow to ignore this warning Signed-off-by: stevenhorsman --- src/runtime-rs/crates/hypervisor/src/qemu/cmdline_generator.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/runtime-rs/crates/hypervisor/src/qemu/cmdline_generator.rs b/src/runtime-rs/crates/hypervisor/src/qemu/cmdline_generator.rs index 9d037f65e0..8263c033ad 100644 --- a/src/runtime-rs/crates/hypervisor/src/qemu/cmdline_generator.rs +++ b/src/runtime-rs/crates/hypervisor/src/qemu/cmdline_generator.rs @@ -371,6 +371,7 @@ impl ToQemuParams for Cpu { /// Error type for CCW Subchannel operations #[derive(Debug)] +#[allow(dead_code)] enum CcwError { DeviceAlreadyExists(String), // Error when trying to add an existing device #[allow(dead_code)]