chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61afc61
)
want: Remove some clutter from invocations
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 2 Apr 2021 12:56:47 +0000
(13:56 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 2 Apr 2021 15:16:35 +0000
(16:16 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/utils.rs
patch
|
blob
|
history
diff --git
a/src/utils.rs
b/src/utils.rs
index c24082d600de0c3926d56476e7535ec012bfe617..527f1094febf389bcea37d5207fb9968c44ff503 100644
(file)
--- 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
?() )
+ ?() )
};
}