mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-03 11:25:20 +00:00
vhost_user_block: Allow dead_code for embedded error
The embedded error in the enum will be read on debug output of the error. Fixes beta clippy issue: warning: field `0` is never read --> vhost_user_block/src/lib.rs:64:23 | 64 | CreateKillEventFd(io::Error), | ----------------- ^^^^^^^^^ | | | field in this variant | = note: `#[warn(dead_code)]` on by default help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 64 | CreateKillEventFd(()), | ~~ Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
This commit is contained in:
parent
8899ebd63c
commit
107f4bdc12
@ -58,6 +58,7 @@ impl<D: Read + Seek + Write + Send> DiskFile for D {}
|
|||||||
type Result<T> = std::result::Result<T, Error>;
|
type Result<T> = std::result::Result<T, Error>;
|
||||||
type VhostUserBackendResult<T> = std::result::Result<T, std::io::Error>;
|
type VhostUserBackendResult<T> = std::result::Result<T, std::io::Error>;
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
enum Error {
|
enum Error {
|
||||||
/// Failed to create kill eventfd
|
/// Failed to create kill eventfd
|
||||||
|
Loading…
Reference in New Issue
Block a user