fix clippy
This commit is contained in:
1 parent
cb8027cf43
commit
c8fca7b321
1 file changed
+2
-2
@@ -179,7 +179,7 @@ fn create_random_dynamic_node(cx: &ScopeState, depth: usize) -> DynamicNode {
|
|||||||
node_paths: &[&[0]],
|
node_paths: &[&[0]],
|
||||||
attr_paths: &[],
|
attr_paths: &[],
|
||||||
},
|
},
|
||||||
bumpalo::collections::Vec::new_in(cx.bump()).into(),
|
bumpalo::collections::Vec::new_in(cx.bump()),
|
||||||
cx.bump().alloc([cx.component(
|
cx.bump().alloc([cx.component(
|
||||||
create_random_element,
|
create_random_element,
|
||||||
DepthProps { depth, root: false },
|
DepthProps { depth, root: false },
|
||||||
@@ -275,7 +275,7 @@ fn create_random_element(cx: Scope<DepthProps>) -> Element {
|
|||||||
let node = VNode::new(
|
let node = VNode::new(
|
||||||
None,
|
None,
|
||||||
template,
|
template,
|
||||||
bumpalo::collections::Vec::new_in(cx.bump()).into(),
|
bumpalo::collections::Vec::new_in(cx.bump()),
|
||||||
{
|
{
|
||||||
let dynamic_nodes: Vec<_> = dynamic_node_types
|
let dynamic_nodes: Vec<_> = dynamic_node_types
|
||||||
.iter()
|
.iter()
|
||||||
|
|||||||
Reference in new issue
Block a user