Fix incorrect default implementation of Widget::diff
This commit is contained in:
parent
50cc94d944
commit
6034a0cf60
1 changed files with 3 additions and 1 deletions
|
|
@ -96,7 +96,9 @@ 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>]);
|
||||||
|
}
|
||||||
|
|
||||||
/// Applies an [`Operation`] to the [`Widget`].
|
/// Applies an [`Operation`] to the [`Widget`].
|
||||||
fn operate(
|
fn operate(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue