From 21ea5afa0a172b7597b317dd257f8fb3bf3a6e99 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Tue, 6 Feb 2024 21:18:50 +0000 Subject: [PATCH] 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 (cherry picked from commit 107f4bdc12044b11b0623f045485c54a007227c9) --- vhost_user_block/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/vhost_user_block/src/lib.rs b/vhost_user_block/src/lib.rs index 93c020097..2adef9405 100644 --- a/vhost_user_block/src/lib.rs +++ b/vhost_user_block/src/lib.rs @@ -58,6 +58,7 @@ impl DiskFile for D {} type Result = std::result::Result; type VhostUserBackendResult = std::result::Result; +#[allow(dead_code)] #[derive(Debug)] enum Error { /// Failed to create kill eventfd