refactor(tvix/eval): remove Box in new_suspended_native

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>
This commit is contained in:
Vincent Ambo 2023-01-04 17:21:09 +03:00 committed by tazjin
parent b9646ab40c
commit 559a09c5e6
3 changed files with 5 additions and 7 deletions

View file

@ -72,12 +72,12 @@ pub fn impure_builtins() -> Vec<(&'static str, Value)> {
result.push((
"storeDir",
Value::Thunk(Thunk::new_suspended_native(Rc::new(Box::new(
Value::Thunk(Thunk::new_suspended_native(Rc::new(
|vm: &mut VM| match vm.io().store_dir() {
None => Ok(Value::Null),
Some(dir) => Ok(Value::String(dir.into())),
},
)))),
))),
));
// currentTime pins the time at which evaluation was started