Make Widget::diff mutable

This commit is contained in:
Héctor Ramón Jiménez 2025-08-20 23:14:23 +02:00
parent 31bc6d48cd
commit 497ebcd0c3
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
31 changed files with 114 additions and 81 deletions

View file

@ -205,7 +205,7 @@ where
class,
} = menu;
let list = Scrollable::new(List {
let mut list = Scrollable::new(List {
options,
hovered_option,
on_selected,
@ -218,7 +218,7 @@ where
class,
});
state.tree.diff(&list as &dyn Widget<_, _, _>);
state.tree.diff(&mut list as &mut dyn Widget<_, _, _>);
Self {
position,