workspace: Remove excess clone (#30226)
Remove excess clone when invoking callback in workspace Release Notes: - N/A
This commit is contained in:
parent
fcf066aff5
commit
e8b67872ed
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue