We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ecd790f commit 62e0fddCopy full SHA for 62e0fdd
internal/compiler/generator/rust.rs
@@ -1489,7 +1489,7 @@ fn generate_item_tree(
1489
static ITEM_ARRAY : sp::OnceBox<
1490
[sp::VOffset<#inner_component_id, sp::ItemVTable, sp::AllowPin>; #item_array_len]
1491
> = sp::OnceBox::new();
1492
- &*ITEM_ARRAY.get_or_init(|| sp::Box::new([#(#item_array),*]))
+ &*ITEM_ARRAY.get_or_init(|| sp::vec![#(#item_array),*].into_boxed_slice().try_into().unwrap())
1493
}
1494
1495
0 commit comments