summaryrefslogtreecommitdiff
path: root/dhall/src/semantics/tck/tyexpr.rs
diff options
context:
space:
mode:
authorNadrieril2020-02-09 22:18:32 +0000
committerNadrieril2020-02-09 22:18:32 +0000
commitf6732982c522dd579d378ab4820001d5ae107c43 (patch)
treed4cc4c4e1d14abd28a24b1636b4d66c4ad07822a /dhall/src/semantics/tck/tyexpr.rs
parentad085a20bc257d03a52708d920cfc65f0e9051e6 (diff)
Automate conversion between envs
Diffstat (limited to '')
-rw-r--r--dhall/src/semantics/tck/tyexpr.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/dhall/src/semantics/tck/tyexpr.rs b/dhall/src/semantics/tck/tyexpr.rs
index 05fa4b5..edba477 100644
--- a/dhall/src/semantics/tck/tyexpr.rs
+++ b/dhall/src/semantics/tck/tyexpr.rs
@@ -56,8 +56,8 @@ impl TyExpr {
}
/// Eval the TyExpr. It will actually get evaluated only as needed on demand.
- pub fn eval(&self, env: &NzEnv) -> Value {
- Value::new_thunk(env, self.to_hir())
+ pub fn eval<'e>(&self, env: impl Into<&'e NzEnv>) -> Value {
+ Value::new_thunk(env.into(), self.to_hir())
}
/// Eval a closed TyExpr (i.e. without free variables). It will actually get evaluated only as
/// needed on demand.