--- a/crates/jrsonnet-evaluator/src/typed/conversions.rs +++ b/crates/jrsonnet-evaluator/src/typed/conversions.rs @@ -127,19 +127,16 @@ const TYPE: &'static ComplexValType = &ComplexValType::Lazy(T::TYPE); } -impl IntoUntyped for Thunk -where - T: Typed + IntoUntyped + Trace + Clone, -{ +impl IntoUntyped for Thunk { fn into_untyped(typed: Self) -> Result { - T::into_untyped(typed.evaluate()?) + typed.evaluate() } fn provides_lazy() -> bool { true } fn into_lazy_untyped(inner: Self) -> Thunk { - inner.map(>::default()) + inner } }