From e8b67872ed3a3b245b7180ddf00fd75659c81c10 Mon Sep 17 00:00:00 2001 From: tidely <43219534+tidely@users.noreply.github.com> Date: Thu, 8 May 2025 12:31:43 +0200 Subject: [PATCH] workspace: Remove excess clone (#30226) Remove excess clone when invoking callback in workspace Release Notes: - N/A --- crates/workspace/src/workspace.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/workspace/src/workspace.rs b/crates/workspace/src/workspace.rs index 28348f066d319329982be91e765cb595b4bc4fca..de65f3f3a1c47130eb055d99c1f13bd36033da89 100644 --- a/crates/workspace/src/workspace.rs +++ b/crates/workspace/src/workspace.rs @@ -5359,7 +5359,7 @@ impl Workspace { self.workspace_actions.push(Box::new(move |div, _, cx| { let callback = callback.clone(); div.on_action(cx.listener(move |workspace, event, window, cx| { - (callback.clone())(workspace, event, window, cx) + (callback)(workspace, event, window, cx) })) })); self