use boxed slices instead of vecs where possible
This commit is contained in:
1 parent
c59926cb1f
commit
aefa8a2431
9 files changed
+53
-46
No files matched your search
@@ -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 ),* ]),
|
||||
)
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user