mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vm-virtio, virtio-devices: Address Rust 1.51.0 clippy issue (upper_case_acronyms)
error: name `TYPE_UNKNOWN` contains a capitalized acronym --> vm-virtio/src/lib.rs:48:5 | 48 | TYPE_UNKNOWN = 0xFF, | ^^^^^^^^^^^^ help: consider making the acronym lowercase, except the initial letter: `Type_Unknown` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
@@ -3283,11 +3283,11 @@ impl DeviceManager {
|
||||
.device_type(),
|
||||
);
|
||||
match device_type {
|
||||
VirtioDeviceType::TYPE_NET
|
||||
| VirtioDeviceType::TYPE_BLOCK
|
||||
| VirtioDeviceType::TYPE_PMEM
|
||||
| VirtioDeviceType::TYPE_FS
|
||||
| VirtioDeviceType::TYPE_VSOCK => {}
|
||||
VirtioDeviceType::Net
|
||||
| VirtioDeviceType::Block
|
||||
| VirtioDeviceType::Pmem
|
||||
| VirtioDeviceType::Fs
|
||||
| VirtioDeviceType::Vsock => {}
|
||||
_ => return Err(DeviceManagerError::RemovalNotAllowed(device_type)),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user