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 <philipp.schuster@cyberus-technology.de>
On-behalf-of: SAP philipp.schuster@sap.com
This commit is contained in:
Philipp Schuster 2025-05-21 12:31:35 +02:00 committed by Rob Bradford
parent 8e2973fe7c
commit ed63b352d1

View file

@ -56,10 +56,10 @@ type VhostUserBackendResult<T> = std::result::Result<T, std::io::Error>;
#[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")]