From bed128164ace98c47472a8d8851618d6fb2b1803 Mon Sep 17 00:00:00 2001 From: stevenhorsman Date: Wed, 29 Jan 2025 15:09:05 +0000 Subject: [PATCH] runtime-rs: Allow unexpected config Clippy fails with: ``` error: unexpected `cfg` condition value: `enable-vendor` --> crates/hypervisor/src/device/driver/vfio.rs:180:11 | 180 | #[cfg(feature = "enable-vendor")] | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: expected values for `feature` are: `ch-config`, `cloud-hypervisor`, `default`, and `dragonball` = help: consider adding `enable-vendor` as a feature in `Cargo.toml` ``` allow this until we can check this behaviour with @Apokleos Signed-off-by: stevenhorsman --- src/runtime-rs/crates/hypervisor/src/device/driver/vfio.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/runtime-rs/crates/hypervisor/src/device/driver/vfio.rs b/src/runtime-rs/crates/hypervisor/src/device/driver/vfio.rs index eaad098d42..c2e8dacafa 100644 --- a/src/runtime-rs/crates/hypervisor/src/device/driver/vfio.rs +++ b/src/runtime-rs/crates/hypervisor/src/device/driver/vfio.rs @@ -177,6 +177,7 @@ pub struct HostDevice { pub guest_pci_path: Option, /// vfio_vendor for vendor's some special cases. + #[allow(unexpected_cfgs)] #[cfg(feature = "enable-vendor")] pub vfio_vendor: VfioVendor, }