From 7b99bd949681e657803ac95ae7a8cd6d1ff3240c Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Wed, 20 Jul 2022 23:58:25 +0000 Subject: [PATCH] hypervisor: suppress clippy::large_enum_variant MSHV's vcpu state is small, but it will grow in the future. Signed-off-by: Wei Liu --- hypervisor/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/hypervisor/src/lib.rs b/hypervisor/src/lib.rs index 3d36794cd..d44cf163d 100644 --- a/hypervisor/src/lib.rs +++ b/hypervisor/src/lib.rs @@ -148,6 +148,7 @@ pub enum IoEventAddress { } #[derive(Clone, serde::Serialize, serde::Deserialize)] +#[allow(clippy::large_enum_variant)] pub enum CpuState { #[cfg(feature = "kvm")] Kvm(kvm::VcpuKvmState),