summaryrefslogtreecommitdiff
path: root/dhall/src/parser.rs
diff options
context:
space:
mode:
authorNadrieril2019-03-05 02:33:47 +0100
committerNadrieril2019-03-05 02:33:47 +0100
commitb3b3a61a903093cddb1e3835540de7b0d96ae822 (patch)
tree1e649bb9d5134454302ad2574cbd48a86acebcfc /dhall/src/parser.rs
parentb0fc75a52b9c0c7e74cb242a4c67b8ff19c1fd1d (diff)
Remove unused unstable features
Diffstat (limited to '')
-rw-r--r--dhall/src/parser.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/dhall/src/parser.rs b/dhall/src/parser.rs
index 47c520e..36e1726 100644
--- a/dhall/src/parser.rs
+++ b/dhall/src/parser.rs
@@ -208,10 +208,11 @@ macro_rules! match_children {
match_children!(@parse, $pairs $($rest)*);
};
(@parse, $pairs:expr, $x:ident? : $ty:ident $($rest:tt)*) => {
- let $x = $x.map($ty).transpose();
+ let $x = $x.map($ty);
let $x = match $x {
- Ok(x) => x,
- Err(e) => break Err(IterMatchError::Other(e)),
+ Some(Ok(x)) => Some(x),
+ Some(Err(e)) => break Err(IterMatchError::Other(e)),
+ None => None,
};
match_children!(@parse, $pairs $($rest)*);
};