summaryrefslogtreecommitdiff
path: root/dhall/src/semantics
diff options
context:
space:
mode:
authorNadrieril2020-11-02 01:03:59 +0000
committerNadrieril2020-11-03 23:18:58 +0000
commit055e70f52bb0d8740ce6ac00b98ae856c29642b2 (patch)
treef2cd4fdb15cd519ff1da2a32ff5aa0cbfad54d7a /dhall/src/semantics
parent71c8e889610b8b9bb6155c20ca91bac4ebc9daee (diff)
Try to keep ownership of `Nir`s when convenient
The goal is that we might avoid cloning internals in the common case where a value is not shared
Diffstat (limited to 'dhall/src/semantics')
-rw-r--r--dhall/src/semantics/nze/normalize.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhall/src/semantics/nze/normalize.rs b/dhall/src/semantics/nze/normalize.rs
index d042f3f..3b40fac 100644
--- a/dhall/src/semantics/nze/normalize.rs
+++ b/dhall/src/semantics/nze/normalize.rs
@@ -144,7 +144,7 @@ pub fn normalize_one_layer(expr: ExprKind<Nir>, env: &NzEnv) -> NirKind {
ExprKind::UnionType(kvs) => {
ret_kind(UnionType(kvs.into_iter().collect()))
}
- ExprKind::Op(ref op) => normalize_operation(op),
+ ExprKind::Op(op) => normalize_operation(op),
ExprKind::Annot(x, _) => ret_nir(x),
ExprKind::Assert(x) => ret_kind(Assert(x)),
ExprKind::Import(..) => {