diff options
-rw-r--r-- | tvix/eval/src/value/thunk.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/eval/src/value/thunk.rs b/tvix/eval/src/value/thunk.rs index 3b7cb7f5f711..9d52ded3c43c 100644 --- a/tvix/eval/src/value/thunk.rs +++ b/tvix/eval/src/value/thunk.rs @@ -51,8 +51,8 @@ pub struct Thunk(Rc<RefCell<ThunkRepr>>); impl Thunk { pub fn new(lambda: Rc<Lambda>) -> Self { Thunk(Rc::new(RefCell::new(ThunkRepr::Suspended { + upvalues: Vec::with_capacity(lambda.upvalue_count), lambda, - upvalues: vec![], }))) } } |