mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-26 11:39:29 +00:00
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 <steven@uk.ibm.com>
This commit is contained in:
parent
53bcb0b108
commit
bed128164a
@ -177,6 +177,7 @@ pub struct HostDevice {
|
|||||||
pub guest_pci_path: Option<PciPath>,
|
pub guest_pci_path: Option<PciPath>,
|
||||||
|
|
||||||
/// vfio_vendor for vendor's some special cases.
|
/// vfio_vendor for vendor's some special cases.
|
||||||
|
#[allow(unexpected_cfgs)]
|
||||||
#[cfg(feature = "enable-vendor")]
|
#[cfg(feature = "enable-vendor")]
|
||||||
pub vfio_vendor: VfioVendor,
|
pub vfio_vendor: VfioVendor,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user