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
@@ -131,9 +131,9 @@ fn native_core_is_okay() {
.unwrap();
rt.block_on(async {
let rdom = Arc::new(Mutex::new(RealDom::new(Box::new([
let rdom = Arc::new(Mutex::new(RealDom::new([
BlablaState::to_type_erased(),
]))));
])));
let mut dioxus_state = DioxusState::create(&mut *rdom.lock().unwrap());
let mut dom = VirtualDom::new(app);