diff --git a/crates/ui/src/components/context_menu.rs b/crates/ui/src/components/context_menu.rs index 6586bf66e26ea9461158613de6ba3e4eaeaffaa2..2445a393f9b574dfc89669ca07f13db9bc2615c1 100644 --- a/crates/ui/src/components/context_menu.rs +++ b/crates/ui/src/components/context_menu.rs @@ -1544,7 +1544,6 @@ impl ContextMenu { let bounds_cell = self.submenu_observed_bounds.clone(); let canvas = canvas( { - let bounds_cell = bounds_cell; move |bounds, _window, _cx| { bounds_cell.set(Some(bounds)); } @@ -1969,7 +1968,6 @@ impl Render for ContextMenu { let bounds_cell = self.submenu_observed_bounds.clone(); let menu_bounds_measure = canvas( { - let bounds_cell = bounds_cell; move |bounds, _window, _cx| { bounds_cell.set(Some(bounds)); }