From ed63b352d1ebf70f36c7d36a0d6b52fc96186581 Mon Sep 17 00:00:00 2001 From: Philipp Schuster Date: Wed, 21 May 2025 12:31:35 +0200 Subject: [PATCH] misc: vhost_user_block: streamline error Display::fmt() The changes were mostly automatically applied using the Python script mentioned in the first commit of this series. Signed-off-by: Philipp Schuster On-behalf-of: SAP philipp.schuster@sap.com --- vhost_user_block/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vhost_user_block/src/lib.rs b/vhost_user_block/src/lib.rs index 5344e4104..040eb1835 100644 --- a/vhost_user_block/src/lib.rs +++ b/vhost_user_block/src/lib.rs @@ -56,10 +56,10 @@ type VhostUserBackendResult = std::result::Result; #[derive(Error, Debug)] enum Error { /// Failed to create kill eventfd - #[error("Failed to create kill eventfd: {0}")] + #[error("Failed to create kill eventfd")] CreateKillEventFd(#[source] io::Error), /// Failed to parse configuration string - #[error("Failed to parse configuration string: {0}")] + #[error("Failed to parse configuration string")] FailedConfigParse(#[source] OptionParserError), /// Failed to handle event other than input event. #[error("Failed to handle event other than input event")]