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:
stevenhorsman 2025-01-29 15:09:05 +00:00
parent 53bcb0b108
commit bed128164a

View File

@ -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,
} }