Add extra clone

This commit is contained in:
Mikayla committed 2023-11-08 22:16:08 -08:00
1 parent 394cbeb2e0
commit 9fd25326ef
1 file changed
+1 -1
+1 -1
View File
@@ -55,7 +55,7 @@ pub fn initialize_workspace(
) -> Task<Result<()>> {
cx.spawn(|mut cx| async move {
workspace_handle.update(&mut cx, |workspace, cx| {
let workspace_handle = cx.view();
let workspace_handle = cx.view().clone();
cx.subscribe(&workspace_handle, {
move |workspace, _, event, cx| {
if let workspace::Event::PaneAdded(pane) = event {