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:
parent
67896333e3
commit
192b19c060
1 changed files with 3 additions and 3 deletions
|
|
@ -306,11 +306,11 @@ pub struct Tuple<S, T>(pub Vec<(S, T)>);
|
||||||
pub enum TupleError {
|
pub enum TupleError {
|
||||||
#[error("invalid value: {0}")]
|
#[error("invalid value: {0}")]
|
||||||
InvalidValue(String),
|
InvalidValue(String),
|
||||||
#[error("split outside brackets: {0}")]
|
#[error("split outside brackets")]
|
||||||
SplitOutsideBrackets(#[source] OptionParserError),
|
SplitOutsideBrackets(#[source] OptionParserError),
|
||||||
#[error("invalid integer list: {0}")]
|
#[error("invalid integer list")]
|
||||||
InvalidIntegerList(#[source] IntegerListParseError),
|
InvalidIntegerList(#[source] IntegerListParseError),
|
||||||
#[error("invalid integer: {0}")]
|
#[error("invalid integer")]
|
||||||
InvalidInteger(#[source] ParseIntError),
|
InvalidInteger(#[source] ParseIntError),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue