Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Add missing `Arc` for `on_click` handler
Marshall Bowersf5c76d93bce0
diff --git a/crates/ui2/src/components/workspace.rs b/crates/ui2/src/components/workspace.rsindex fc385542d05..13e652791d0 100644--- a/crates/ui2/src/components/workspace.rs+++ b/crates/ui2/src/components/workspace.rs@@ -1,3 +1,5 @@+use std::sync::Arc;+use chrono::DateTime;use gpui3::{px, relative, view, Context, Size, View};@@ -303,7 +305,7 @@ impl Workspace {.child(h_stack().gap_2().child(Button::<Workspace>::new("Toggle Debug")- .on_click(|workspace, cx| workspace.toggle_debug(cx)),+ .on_click(Arc::new(|workspace, cx| workspace.toggle_debug(cx))),),)}