From 559a09c5e6dc55717f97c3664f73ec65f736583f Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 4 Jan 2023 17:21:09 +0300 Subject: 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 Reviewed-by: sterni --- tvix/eval/src/value/thunk.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tvix/eval/src/value/thunk.rs') diff --git a/tvix/eval/src/value/thunk.rs b/tvix/eval/src/value/thunk.rs index a820e73307..716cf4404e 100644 --- a/tvix/eval/src/value/thunk.rs +++ b/tvix/eval/src/value/thunk.rs @@ -86,9 +86,7 @@ impl Thunk { }))) } - pub fn new_suspended_native( - native: Rc Result>>, - ) -> Self { + pub fn new_suspended_native(native: Rc Result>) -> Self { let span = codemap::CodeMap::new() .add_file("".to_owned(), "".to_owned()) .span; -- cgit 1.4.1