Simplify Widget::diff default implementation
This commit is contained in:
parent
6034a0cf60
commit
f67785edb5
1 changed files with 1 additions and 1 deletions
|
|
@ -97,7 +97,7 @@ where
|
||||||
|
|
||||||
/// Reconciles the [`Widget`] with the provided [`Tree`].
|
/// Reconciles the [`Widget`] with the provided [`Tree`].
|
||||||
fn diff(&self, tree: &mut Tree) {
|
fn diff(&self, tree: &mut Tree) {
|
||||||
tree.diff_children(&[] as &[&dyn Widget<Message, Theme, Renderer>]);
|
tree.children.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Applies an [`Operation`] to the [`Widget`].
|
/// Applies an [`Operation`] to the [`Widget`].
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue