From: Ian Jackson Date: Fri, 2 Apr 2021 12:56:47 +0000 (+0100) Subject: want: Remove some clutter from invocations X-Git-Tag: otter-0.5.0~318 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=07a6efe48040d5b67ab993f935c3487fce5650f9;p=otter.git want: Remove some clutter from invocations Signed-off-by: Ian Jackson --- diff --git a/src/utils.rs b/src/utils.rs index c24082d6..527f1094 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -450,7 +450,7 @@ macro_rules! want_failed_internal { #[macro_export] macro_rules! want { { $variant:ident = $input:expr, - else ?($($d:expr),*) + ?($($d:expr),*) } => ( match $input { $variant(y) => Some(y), @@ -462,7 +462,7 @@ macro_rules! want { ); { $variant:ident = $input:expr } => { want!( $variant = $input, - else ?() ) + ?() ) }; }