mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-14 06:06:12 +00:00
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 <steven@uk.ibm.com>
This commit is contained in:
parent
1d9efeb92b
commit
a9358b59b7
@ -371,6 +371,7 @@ impl ToQemuParams for Cpu {
|
|||||||
|
|
||||||
/// Error type for CCW Subchannel operations
|
/// Error type for CCW Subchannel operations
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
|
#[allow(dead_code)]
|
||||||
enum CcwError {
|
enum CcwError {
|
||||||
DeviceAlreadyExists(String), // Error when trying to add an existing device
|
DeviceAlreadyExists(String), // Error when trying to add an existing device
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
|
Loading…
Reference in New Issue
Block a user