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
@@ -84,12 +84,12 @@ pub fn render<R: Driver>(
UnboundedSender<InputEvent>,
) -> R,
) -> Result<()> {
let mut rdom = RealDom::new(Box::new([
let mut rdom = RealDom::new([
TaffyLayout::to_type_erased(),
Focus::to_type_erased(),
StyleModifier::to_type_erased(),
PreventDefault::to_type_erased(),
]));
]);
let (handler, mut register_event) = RinkInputHandler::create(&mut rdom);