From dea4844f96e54c4681e6f32d4de594ca750e512a Mon Sep 17 00:00:00 2001 From: Zed Zippy <234243425+zed-zippy[bot]@users.noreply.github.com> Date: Sat, 27 Dec 2025 17:19:58 +0000 Subject: [PATCH] Autofix --- crates/ui/src/components/context_menu.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/ui/src/components/context_menu.rs b/crates/ui/src/components/context_menu.rs index 46e027ac7bd49a6d83850f7a88df9a20800b4d0b..ec35412feec73dcbf1dfa7c66bac68f3622bdb0e 100644 --- a/crates/ui/src/components/context_menu.rs +++ b/crates/ui/src/components/context_menu.rs @@ -1180,7 +1180,7 @@ impl ContextMenu { } let (submenu, dismiss_subscription) = - Self::create_submenu(builder, cx.entity().clone(), window, cx); + Self::create_submenu(builder, cx.entity(), window, cx); // If we're switching from one submenu item to another, throw away any previously-captured // offset so we don't reuse a stale position. @@ -1524,7 +1524,7 @@ impl ContextMenu { let bounds_cell = self.submenu_observed_bounds.clone(); let canvas = canvas( { - let bounds_cell = bounds_cell.clone(); + let bounds_cell = bounds_cell; move |bounds, _window, _cx| { bounds_cell.set(Some(bounds)); } @@ -1949,7 +1949,7 @@ impl Render for ContextMenu { let bounds_cell = self.submenu_observed_bounds.clone(); let menu_bounds_measure = canvas( { - let bounds_cell = bounds_cell.clone(); + let bounds_cell = bounds_cell; move |bounds, _window, _cx| { bounds_cell.set(Some(bounds)); } @@ -2059,7 +2059,7 @@ impl Render for ContextMenu { }) .child(render_aside(aside, cx)) })) - .when_some(submenu_container.clone(), |this, (ix, submenu, offset)| { + .when_some(submenu_container, |this, (ix, submenu, offset)| { this.child(self.render_submenu_container(ix, submenu, offset, cx)) }) } else {