From 427a3416507db3fd4b534322d996bc8aafba5259 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Sat, 13 Apr 2019 21:34:51 +0200 Subject: Fix `let` parsing --- dhall/src/binary.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'dhall/src') diff --git a/dhall/src/binary.rs b/dhall/src/binary.rs index c785daf..8a23e76 100644 --- a/dhall/src/binary.rs +++ b/dhall/src/binary.rs @@ -316,6 +316,7 @@ fn cbor_value_to_dhall(data: &cbor::Value) -> Result { let expr = cbor_value_to_dhall(expr)?; return Ok(bindings .into_iter() + .rev() .fold(expr, |acc, (x, t, v)| rc(Let(x, t, v, acc)))); } [U64(26), x, y] => { -- cgit v1.2.3