Checkpoint

This commit is contained in:
Antonio Scandurra 2023-10-24 15:30:16 +02:00
parent 191285a8f1
commit 9aaf7d0c46

View File

@ -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 {