use boxed slices instead of vecs where possible

This commit is contained in:
Evan Almloff committed 2024-01-07 13:41:39 -06:00
1 parent c59926cb1f
commit aefa8a2431
9 files changed
+53 -46

No files matched your search

+3 -3
View File
@@ -256,9 +256,9 @@ impl<'a> ToTokens for TemplateRenderer<'a> {
::dioxus::core::VNode::new(
#key_tokens,
TEMPLATE,
Vec::with_capacity(#root_count),
vec![ #( #node_printer ),* ],
vec![ #( #dyn_attr_printer ),* ],
Box::new([Default::default();#root_count]),
Box::new([ #( #node_printer ),* ]),
Box::new([ #( #dyn_attr_printer ),* ]),
)
});
}