File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
examples/dodrio/todomvc/src Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ pub fn start(vdom: VdomWeak) {
57
57
// Note that if we ever intended to unmount our todos app, we would want to
58
58
// provide a method for removing this router's event listener and cleaning
59
59
// up after ourselves.
60
- let on_hash_change = Closure :: wrap ( Box :: new ( on_hash_change) as Box < FnMut ( ) > ) ;
60
+ let on_hash_change = Closure :: wrap ( Box :: new ( on_hash_change) as Box < dyn FnMut ( ) > ) ;
61
61
let window = utils:: window ( ) ;
62
62
window
63
63
. add_event_listener_with_callback ( "hashchange" , on_hash_change. as_ref ( ) . unchecked_ref ( ) )
Original file line number Diff line number Diff line change 3
3
use std:: fmt:: Display ;
4
4
use std:: marker:: PhantomData ;
5
5
6
- use crate :: OutputType ;
7
6
use crate :: elements:: { FlowContent , PhrasingContent } ;
7
+ use crate :: OutputType ;
8
8
use htmlescape:: encode_minimal;
9
9
10
10
/// A boxed DOM tree, as returned from the `html!` macro.
@@ -23,7 +23,7 @@ use htmlescape::encode_minimal;
23
23
/// let rendered_tree: String = tree.to_string();
24
24
/// # }
25
25
/// ```
26
- pub type DOMTree < T > = Box < Node < T > > ;
26
+ pub type DOMTree < T > = Box < dyn Node < T > > ;
27
27
28
28
/// An untyped representation of an HTML node.
29
29
///
You can’t perform that action at this time.
0 commit comments