Skip to content

Commit d97c8fa

Browse files
committed
Clippy appeasement.
1 parent 15c6ca1 commit d97c8fa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/dodrio/todomvc/src/router.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ pub fn start(vdom: VdomWeak) {
5757
// Note that if we ever intended to unmount our todos app, we would want to
5858
// provide a method for removing this router's event listener and cleaning
5959
// 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()>);
6161
let window = utils::window();
6262
window
6363
.add_event_listener_with_callback("hashchange", on_hash_change.as_ref().unchecked_ref())

typed-html/src/dom.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
use std::fmt::Display;
44
use std::marker::PhantomData;
55

6-
use crate::OutputType;
76
use crate::elements::{FlowContent, PhrasingContent};
7+
use crate::OutputType;
88
use htmlescape::encode_minimal;
99

1010
/// A boxed DOM tree, as returned from the `html!` macro.
@@ -23,7 +23,7 @@ use htmlescape::encode_minimal;
2323
/// let rendered_tree: String = tree.to_string();
2424
/// # }
2525
/// ```
26-
pub type DOMTree<T> = Box<Node<T>>;
26+
pub type DOMTree<T> = Box<dyn Node<T>>;
2727

2828
/// An untyped representation of an HTML node.
2929
///

0 commit comments

Comments
 (0)