diff options
author | Vincent Ambo <mail@tazj.in> | 2023-01-04T14·21+0300 |
---|---|---|
committer | tazjin <tazjin@tvl.su> | 2023-01-17T10·38+0000 |
commit | 559a09c5e6dc55717f97c3664f73ec65f736583f (patch) | |
tree | e12c4cbc778ae429bf518ce6646a319d7001b615 /tvix/eval/src/value/thunk.rs | |
parent | b9646ab40c3b7da488b3f3874fb0ce4ddafe6de4 (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/value/thunk.rs')
-rw-r--r-- | tvix/eval/src/value/thunk.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tvix/eval/src/value/thunk.rs b/tvix/eval/src/value/thunk.rs index a820e73307ad..716cf4404e2e 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<Box<dyn Fn(&mut VM) -> Result<Value, ErrorKind>>>, - ) -> Self { + pub fn new_suspended_native(native: Rc<dyn Fn(&mut VM) -> Result<Value, ErrorKind>>) -> Self { let span = codemap::CodeMap::new() .add_file("<internal>".to_owned(), "<internal>".to_owned()) .span; |