diff options
author | Adam Joseph <adam@westernsemico.com> | 2022-11-27T08·54-0800 |
---|---|---|
committer | tazjin <tazjin@tvl.su> | 2022-12-21T14·50+0000 |
commit | e04b1697e4f4e8236418571c1f5938f0a9717bb7 (patch) | |
tree | 99da7ffabdcd33bf3ed64b9981bc62bbac13e246 /tvix/eval/src/builtins/mod.rs | |
parent | b3c34c3c6104824733baae2d892eeabd423681a2 (diff) |
feat(tvix/eval): wrap Closure in Rc<> to match cppnix semantics r/5452
Change-Id: I595087eff943d38a9fc78a83d37e207bb2ab79bc Reviewed-on: https://cl.tvl.fyi/c/depot/+/7443 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/eval/src/builtins/mod.rs')
-rw-r--r-- | tvix/eval/src/builtins/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/eval/src/builtins/mod.rs b/tvix/eval/src/builtins/mod.rs index f75acd48ad31..e4e9c14df6b8 100644 --- a/tvix/eval/src/builtins/mod.rs +++ b/tvix/eval/src/builtins/mod.rs @@ -323,7 +323,7 @@ mod pure_builtins { #[builtin("functionArgs")] fn builtin_function_args(_: &mut VM, f: Value) -> Result<Value, ErrorKind> { - let lambda = f.to_closure()?.lambda(); + let lambda = &f.as_closure()?.lambda(); let formals = if let Some(formals) = &lambda.formals { formals } else { |