From cdedb08d8c2dcf32e4fe64d4fb542c936b5783f9 Mon Sep 17 00:00:00 2001 From: Sellig6792 Date: Tue, 27 Dec 2022 21:24:44 +0100 Subject: [PATCH] the trait `From>` is not implemented for `Box<[T; 30000]>` --- src/evaluation/scope.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/evaluation/scope.rs b/src/evaluation/scope.rs index 108dc30..94f7ced 100644 --- a/src/evaluation/scope.rs +++ b/src/evaluation/scope.rs @@ -17,7 +17,7 @@ impl> Scope { Scope { memory: Box::new([Cell::new(0); 30000]), - function_memory: match function_memory_vec.try_into() { + function_memory: match function_memory_vec.into_boxed_slice().try_into() { Ok(function_memory) => function_memory, Err(_) => panic!("Could not convert Vec to Box<[T; 30000]>"), },