diff options
author | Nadrieril | 2019-03-05 02:33:47 +0100 |
---|---|---|
committer | Nadrieril | 2019-03-05 02:33:47 +0100 |
commit | b3b3a61a903093cddb1e3835540de7b0d96ae822 (patch) | |
tree | 1e649bb9d5134454302ad2574cbd48a86acebcfc /dhall/src/parser.rs | |
parent | b0fc75a52b9c0c7e74cb242a4c67b8ff19c1fd1d (diff) |
Remove unused unstable features
Diffstat (limited to '')
-rw-r--r-- | dhall/src/parser.rs | 7 |
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)*); }; |