Skip to content

Commit

Permalink
the trait From<Vec<T>> is not implemented for Box<[T; 30000]>
Browse files Browse the repository at this point in the history
  • Loading branch information
Sellig6792 committed Dec 27, 2022
1 parent 461122f commit cdedb08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/evaluation/scope.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ impl<T: InstructionTrait<T>> Scope<T> {

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]>"),
},
Expand Down

0 comments on commit cdedb08

Please sign in to comment.