Clippy appeasement.
This commit is contained in:
parent
15c6ca1143
commit
d97c8fa03c
|
@ -57,7 +57,7 @@ pub fn start(vdom: VdomWeak) {
|
||||||
// Note that if we ever intended to unmount our todos app, we would want to
|
// 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
|
// provide a method for removing this router's event listener and cleaning
|
||||||
// up after ourselves.
|
// 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();
|
let window = utils::window();
|
||||||
window
|
window
|
||||||
.add_event_listener_with_callback("hashchange", on_hash_change.as_ref().unchecked_ref())
|
.add_event_listener_with_callback("hashchange", on_hash_change.as_ref().unchecked_ref())
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
use std::fmt::Display;
|
use std::fmt::Display;
|
||||||
use std::marker::PhantomData;
|
use std::marker::PhantomData;
|
||||||
|
|
||||||
use crate::OutputType;
|
|
||||||
use crate::elements::{FlowContent, PhrasingContent};
|
use crate::elements::{FlowContent, PhrasingContent};
|
||||||
|
use crate::OutputType;
|
||||||
use htmlescape::encode_minimal;
|
use htmlescape::encode_minimal;
|
||||||
|
|
||||||
/// A boxed DOM tree, as returned from the `html!` macro.
|
/// 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();
|
/// 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.
|
/// An untyped representation of an HTML node.
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in New Issue