From 07a6efe48040d5b67ab993f935c3487fce5650f9 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 2 Apr 2021 13:56:47 +0100 Subject: [PATCH] want: Remove some clutter from invocations Signed-off-by: Ian Jackson --- src/utils.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ?() ) + ?() ) }; } -- 2.30.2