Skip to content

Commit

Permalink
Clippy appeasement.
Browse files Browse the repository at this point in the history
  • Loading branch information
bodil committed Jun 28, 2019
1 parent 15c6ca1 commit d97c8fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/dodrio/todomvc/src/router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub fn start(vdom: VdomWeak) {
// Note that if we ever intended to unmount our todos app, we would want to
// provide a method for removing this router's event listener and cleaning
// up after ourselves.
let on_hash_change = Closure::wrap(Box::new(on_hash_change) as Box<FnMut()>);
let on_hash_change = Closure::wrap(Box::new(on_hash_change) as Box<dyn FnMut()>);
let window = utils::window();
window
.add_event_listener_with_callback("hashchange", on_hash_change.as_ref().unchecked_ref())
Expand Down
4 changes: 2 additions & 2 deletions typed-html/src/dom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
use std::fmt::Display;
use std::marker::PhantomData;

use crate::OutputType;
use crate::elements::{FlowContent, PhrasingContent};
use crate::OutputType;
use htmlescape::encode_minimal;

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

/// An untyped representation of an HTML node.
///
Expand Down

0 comments on commit d97c8fa

Please sign in to comment.