mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
misc: option_parser: 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
67896333e3
commit
192b19c060
@@ -306,11 +306,11 @@ pub struct Tuple<S, T>(pub Vec<(S, T)>);
|
||||
pub enum TupleError {
|
||||
#[error("invalid value: {0}")]
|
||||
InvalidValue(String),
|
||||
#[error("split outside brackets: {0}")]
|
||||
#[error("split outside brackets")]
|
||||
SplitOutsideBrackets(#[source] OptionParserError),
|
||||
#[error("invalid integer list: {0}")]
|
||||
#[error("invalid integer list")]
|
||||
InvalidIntegerList(#[source] IntegerListParseError),
|
||||
#[error("invalid integer: {0}")]
|
||||
#[error("invalid integer")]
|
||||
InvalidInteger(#[source] ParseIntError),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user