From 6034a0cf603fa7849f074c9dbe1b1399c385cef1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Thu, 24 Apr 2025 22:55:31 +0200 Subject: [PATCH] Fix incorrect default implementation of `Widget::diff` --- core/src/widget.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/widget.rs b/core/src/widget.rs index 3c9c50ab..04107482 100644 --- a/core/src/widget.rs +++ b/core/src/widget.rs @@ -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]); + } /// Applies an [`Operation`] to the [`Widget`]. fn operate(