Cleanup: use html!() instead of Default::default

This commit is contained in:
Cecile Tonglet 2020-09-14 21:11:59 +02:00
parent 5c49b5a595
commit f5992a3a83

View file

@ -95,7 +95,7 @@ impl<T: Clone + PartialEq + 'static> Component for Tree<T> {
let nodes = if let Some(root_id) = tree.root_node_id() {
self.render_children(root_id, 0)
} else {
Default::default()
html!()
};
html! {