Remove the box::new passed into RealDom::new

This commit is contained in:
Evan Almloff committed 2023-03-14 16:35:11 -05:00
1 parent d1155d159c
commit a37b29947b
7 files changed
+19 -18

No files matched your search

+2 -2
View File
@@ -346,7 +346,7 @@ fn create() {
},
);
let mutations = vdom.rebuild();
let mut rdom: RealDom = RealDom::new(Box::new([BlablaState::to_type_erased()]));
let mut rdom: RealDom = RealDom::new([BlablaState::to_type_erased()]);
let mut dioxus_state = DioxusState::create(&mut rdom);
dioxus_state.apply_mutations(&mut rdom, mutations);
@@ -368,7 +368,7 @@ fn diff() {
},
);
let mutations = vdom.rebuild();
let mut rdom: RealDom = RealDom::new(Box::new([BlablaState::to_type_erased()]));
let mut rdom: RealDom = RealDom::new([BlablaState::to_type_erased()]);
let mut dioxus_state = DioxusState::create(&mut rdom);
dioxus_state.apply_mutations(&mut rdom, mutations);