@@ -55,7 +55,7 @@ pub(crate) struct VdomInnerExclusive {
5555 // Always `Some` except just before we drop. Just an option so that
5656 // `unmount` can take the component out but we can still have a Drop
5757 // implementation.
58− component: Option<Box<RootRender>>,
58+ component: Option<Box<dyn RootRender>>,
5959
6060 dom_buffers: Option<[Bump; 2]>,
6161 change_list: ManuallyDrop<ChangeListPersistentState>,
@@ -158,12 +158,15 @@ impl Vdom {
158158 where
159159 R: RootRender,
160160 {
161− Self::with_boxed_root_render(container, Box::new(component) as Box<RootRender>)
161+ Self::with_boxed_root_render(container, Box::new(component) as Box<dyn RootRender>)
162162 }
163163
164164 /// Construct a `Vdom` with the already-boxed-as-a-trait-object root
165165 /// rendering component.
166− pub fn with_boxed_root_render(container: &crate::Element, component: Box<RootRender>) -> Vdom {
166+ pub fn with_boxed_root_render(
167+ container: &crate::Element,
168+ component: Box<dyn RootRender>,
169+ ) -> Vdom {
167170 crate::strace::init_strace();
168171
169172 let dom_buffers = [Bump::new(), Bump::new()];
@@ -217,7 +220,7 @@ impl Vdom {
217220 R: RootRender,
218221 {
219222 let mut exclusive = self.inner.exclusive.borrow_mut();
220− let component = Box::new(component) as Box<RootRender>;
223+ let component = Box::new(component) as Box<dyn RootRender>;
221224 exclusive.component = Some(component);
222225 exclusive.render();
223226 }
@@ -237,7 +240,7 @@ impl Vdom {
237240 /// Unmount this virtual DOM, unregister its event listeners, and return its
238241 /// root render component.
239242 #[inline]
240− pub fn unmount(self) -> Box<RootRender> {
243+ pub fn unmount(self) -> Box<dyn RootRender> {
241244 Rc::try_unwrap(self.inner.clone())
242245 .map_err(|_| ())
243246 .unwrap_throw()
@@ -323,7 +326,7 @@ impl VdomInnerExclusive {
323326 }
324327}
325328
326−fn request_animation_frame(f: &Closure<FnMut()>) {
329+fn request_animation_frame(f: &Closure<dyn FnMut()>) {
327330 web_sys::window()
328331 .expect_throw("should have a window")
329332 .request_animation_frame(f.as_ref().unchecked_ref())
@@ -340,7 +343,7 @@ where
340343 let f = Closure::wrap(Box::new(move || {
341344 *g.borrow_mut() = None;
342345 f();
343− }) as Box<FnMut()>);
346+ }) as Box<dyn FnMut()>);
344347 request_animation_frame(&f);
345348
346349 *h.borrow_mut() = Some(f);