Fix incorrect default implementation of Widget::diff

This commit is contained in:
Héctor Ramón Jiménez 2025-04-24 22:55:31 +02:00
parent 50cc94d944
commit 6034a0cf60
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -96,7 +96,9 @@ where
}
/// 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`].
fn operate(