From 192b19c0607c87b246493deb193f9ca5d9f4682b Mon Sep 17 00:00:00 2001 From: Philipp Schuster Date: Fri, 23 May 2025 11:17:43 +0200 Subject: [PATCH] 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 On-behalf-of: SAP philipp.schuster@sap.com --- option_parser/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/option_parser/src/lib.rs b/option_parser/src/lib.rs index 61d1c44de..f83524a20 100644 --- a/option_parser/src/lib.rs +++ b/option_parser/src/lib.rs @@ -306,11 +306,11 @@ pub struct Tuple(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), }