Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Add extra clone
Mikayla86630bbe590c
diff --git a/crates/zed2/src/zed2.rs b/crates/zed2/src/zed2.rsindex 7368d3a5efe..de985496c8e 100644--- a/crates/zed2/src/zed2.rs+++ b/crates/zed2/src/zed2.rs@@ -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 {