summaryrefslogtreecommitdiff
path: root/dhall/src
diff options
context:
space:
mode:
Diffstat (limited to 'dhall/src')
-rw-r--r--dhall/src/binary.rs1
1 files changed, 1 insertions, 0 deletions
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<ParsedExpr, DecodeError> {
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] => {