diff --git a/crates/gpui2/src/subscription.rs b/crates/gpui2/src/subscription.rs index 2b83ccc1ef..b835311c12 100644 --- a/crates/gpui2/src/subscription.rs +++ b/crates/gpui2/src/subscription.rs @@ -21,7 +21,7 @@ struct SubscriberSetState { impl SubscriberSet 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>, + unsubscribe: Option>, } impl Subscription {