diff options
author | Nadrieril | 2019-04-20 22:11:08 +0200 |
---|---|---|
committer | Nadrieril | 2019-04-20 22:11:08 +0200 |
commit | 6bbe7df139552695081af735bd82945e5e22ed05 (patch) | |
tree | 3824894a14656da050d311016fdd6bdceb3a5bb7 /dhall_core/src | |
parent | 9fbc4f6b9a5496c8e41a079484bc9010b25849df (diff) |
improved_slice_patterns now returns ownership on error
Diffstat (limited to '')
-rw-r--r-- | dhall_core/src/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dhall_core/src/parser.rs b/dhall_core/src/parser.rs index 051a4e6..31249a9 100644 --- a/dhall_core/src/parser.rs +++ b/dhall_core/src/parser.rs @@ -176,7 +176,7 @@ macro_rules! make_parser { [x..] => Err( format!("Unexpected children: {:?}", x.collect::<Vec<_>>()) )?, - ).ok_or_else(|| -> String { unreachable!() })?; + ).map_err(|_| -> String { unreachable!() })?; Ok(ParsedValue::$group(res)) }); (@body, |