misc: virtio-devices: 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:22 +02:00
committed by Rob Bradford
parent 3541cebbf1
commit 8e2973fe7c
16 changed files with 142 additions and 142 deletions

View File

@@ -153,11 +153,11 @@ pub const TX_RATE_LIMITER_EVENT: u16 = EPOLL_HELPER_EVENT_LAST + 6;
#[derive(Error, Debug)]
pub enum Error {
#[error("Failed to open taps: {0}")]
#[error("Failed to open taps")]
OpenTap(#[source] OpenTapError),
#[error("Using existing tap: {0}")]
#[error("Using existing tap")]
TapError(#[source] TapError),
#[error("Error calling dup() on tap fd: {0}")]
#[error("Error calling dup() on tap fd")]
DuplicateTapFd(#[source] std::io::Error),
}