Mutable draw_child so no more mutex needed

This commit is contained in:
2025-08-03 09:04:24 -05:00
parent acce51c372
commit 71299046d3
4 changed files with 24 additions and 24 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ pub trait Element: Send + Sync {
/// Called to draw child widgets, if any.
#[allow(unused)]
fn draw_child(&self, element: &Arc<Widget>) {}
fn draw_child(&mut self, element: &Arc<Widget>) {}
#[allow(unused)]
fn event(&mut self, event: &dyn Event) {}