mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: Address Rust 1.51.0 clippy issue (upper_case_acroynms)
warning: name `ConvertFromUTF8` contains a capitalized acronym --> virtio-devices/src/vsock/unix/mod.rs:32:5 | 32 | ConvertFromUTF8(std::str::Utf8Error), | ^^^^^^^^^^^^^^^ help: consider making the acronym lowercase, except the initial letter: `ConvertFromUtf8` | = 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:
@@ -69,7 +69,7 @@ unsafe impl ByteValued for VirtioNetConfig {}
|
||||
#[derive(Debug)]
|
||||
pub enum Error {
|
||||
/// Read process MQ.
|
||||
FailedProcessMQ,
|
||||
FailedProcessMq,
|
||||
/// Read queue failed.
|
||||
GuestMemory(GuestMemoryError),
|
||||
/// Invalid ctrl class
|
||||
@@ -148,7 +148,7 @@ impl CtrlVirtio {
|
||||
return Err(Error::InvalidCtlCmd);
|
||||
}
|
||||
if let Err(_e) = self.process_mq(&mem, avail_desc) {
|
||||
return Err(Error::FailedProcessMQ);
|
||||
return Err(Error::FailedProcessMq);
|
||||
}
|
||||
}
|
||||
_ => return Err(Error::InvalidCtlClass),
|
||||
|
||||
Reference in New Issue
Block a user