Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Checkpoint

Antonio Scandurra9aaf7d0c46f7
diff --git a/crates/gpui2/src/subscription.rs b/crates/gpui2/src/subscription.rs
index 2b83ccc1efb..b835311c122 100644
--- a/crates/gpui2/src/subscription.rs
+++ b/crates/gpui2/src/subscription.rs
@@ -21,7 +21,7 @@ struct SubscriberSetState<EmitterKey, Callback> {
impl<EmitterKey, Callback> SubscriberSet<EmitterKey, Callback>
where
- EmitterKey: 'static + Ord + Clone + Debug,
+ EmitterKey: 'static + Send + Sync + Ord + Clone + Debug,
Callback: 'static + Send + Sync,
{
pub fn new() -> Self {
@@ -96,7 +96,7 @@ where
#[must_use]
pub struct Subscription {
- unsubscribe: Option<Box<dyn FnOnce()>>,
+ unsubscribe: Option<Box<dyn FnOnce() + Send + Sync + 'static>>,
}
impl Subscription {