From d97c8fa03c564a5b3f10e299ebaad0210a3def3c Mon Sep 17 00:00:00 2001 From: Bodil Stokke Date: Fri, 28 Jun 2019 14:45:44 +0100 Subject: [PATCH] Clippy appeasement. --- examples/dodrio/todomvc/src/router.rs | 2 +- typed-html/src/dom.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/dodrio/todomvc/src/router.rs b/examples/dodrio/todomvc/src/router.rs index f3242c4..355a925 100644 --- a/examples/dodrio/todomvc/src/router.rs +++ b/examples/dodrio/todomvc/src/router.rs @@ -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); + let on_hash_change = Closure::wrap(Box::new(on_hash_change) as Box); let window = utils::window(); window .add_event_listener_with_callback("hashchange", on_hash_change.as_ref().unchecked_ref()) diff --git a/typed-html/src/dom.rs b/typed-html/src/dom.rs index e728cd8..57ca98a 100644 --- a/typed-html/src/dom.rs +++ b/typed-html/src/dom.rs @@ -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. @@ -23,7 +23,7 @@ use htmlescape::encode_minimal; /// let rendered_tree: String = tree.to_string(); /// # } /// ``` -pub type DOMTree = Box>; +pub type DOMTree = Box>; /// An untyped representation of an HTML node. ///