about summary refs log tree commit diff
path: root/tvix/eval/src/compiler
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2023-01-04T14·21+0300
committertazjin <tazjin@tvl.su>2023-01-17T10·38+0000
commit559a09c5e6dc55717f97c3664f73ec65f736583f (patch)
treee12c4cbc778ae429bf518ce6646a319d7001b615 /tvix/eval/src/compiler
parentb9646ab40c3b7da488b3f3874fb0ce4ddafe6de4 (diff)
refactor(tvix/eval): remove `Box` in new_suspended_native r/5675
This is unnecessary, Rc already provides all the boxing we need.

Change-Id: I08cf0939c48da43f04c847526c7e5dae5336d528
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7749
Tested-by: BuildkiteCI
Reviewed-by: grfn <grfn@gws.fyi>
Reviewed-by: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'tvix/eval/src/compiler')
-rw-r--r--tvix/eval/src/compiler/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tvix/eval/src/compiler/mod.rs b/tvix/eval/src/compiler/mod.rs
index 605fce47490f..92084b031c6c 100644
--- a/tvix/eval/src/compiler/mod.rs
+++ b/tvix/eval/src/compiler/mod.rs
@@ -1288,7 +1288,7 @@ pub fn prepare_globals(
         let weak_globals = weak.clone();
         builtins_under_construction.insert(
             "builtins",
-            Value::Thunk(Thunk::new_suspended_native(Rc::new(Box::new(move |_| {
+            Value::Thunk(Thunk::new_suspended_native(Rc::new(move |_| {
                 let file = source.add_file("builtins-dot-builtins.nix".into(), "builtins".into());
                 let span = file.span;
                 let mut observer = NoOpObserver::default();
@@ -1305,7 +1305,7 @@ pub fn prepare_globals(
                 weak_globals.upgrade().unwrap().get("builtins").unwrap()(&mut compiler, span);
 
                 Ok(compiler.chunk().constants[0].clone())
-            })))),
+            }))),
         );
 
         // This is followed by the actual `builtins` attribute set