mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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:
committed by
Rob Bradford
parent
8e2973fe7c
commit
ed63b352d1
@@ -56,10 +56,10 @@ type VhostUserBackendResult<T> = std::result::Result<T, std::io::Error>;
|
|||||||
#[derive(Error, Debug)]
|
#[derive(Error, Debug)]
|
||||||
enum Error {
|
enum Error {
|
||||||
/// Failed to create kill eventfd
|
/// Failed to create kill eventfd
|
||||||
#[error("Failed to create kill eventfd: {0}")]
|
#[error("Failed to create kill eventfd")]
|
||||||
CreateKillEventFd(#[source] io::Error),
|
CreateKillEventFd(#[source] io::Error),
|
||||||
/// Failed to parse configuration string
|
/// Failed to parse configuration string
|
||||||
#[error("Failed to parse configuration string: {0}")]
|
#[error("Failed to parse configuration string")]
|
||||||
FailedConfigParse(#[source] OptionParserError),
|
FailedConfigParse(#[source] OptionParserError),
|
||||||
/// Failed to handle event other than input event.
|
/// Failed to handle event other than input event.
|
||||||
#[error("Failed to handle event other than input event")]
|
#[error("Failed to handle event other than input event")]
|
||||||
|
|||||||
Reference in New Issue
Block a user