mirror of
https://github.com/yewprint/yewprint
synced 2024-11-22 03:23:03 +00:00
Cleanup: use html!() instead of Default::default
This commit is contained in:
parent
5c49b5a595
commit
f5992a3a83
1 changed files with 1 additions and 1 deletions
|
@ -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! {
|
||||
|
|
Loading…
Reference in a new issue