diff options
author | Nadrieril | 2020-02-09 22:18:32 +0000 |
---|---|---|
committer | Nadrieril | 2020-02-09 22:18:32 +0000 |
commit | f6732982c522dd579d378ab4820001d5ae107c43 (patch) | |
tree | d4cc4c4e1d14abd28a24b1636b4d66c4ad07822a /dhall/src/semantics/tck/tyexpr.rs | |
parent | ad085a20bc257d03a52708d920cfc65f0e9051e6 (diff) |
Automate conversion between envs
Diffstat (limited to '')
-rw-r--r-- | dhall/src/semantics/tck/tyexpr.rs | 4 |
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. |