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:
Philipp Schuster 2025-05-23 11:17:43 +02:00 committed by Rob Bradford
parent 67896333e3
commit 192b19c060

View file

@ -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),
}