diff --git a/rtic-sync/src/signal.rs b/rtic-sync/src/signal.rs index 017be8a353..2595f6fb7a 100644 --- a/rtic-sync/src/signal.rs +++ b/rtic-sync/src/signal.rs @@ -12,12 +12,17 @@ enum Store { } /// A "latest only" value store with unlimited writers and async waiting. -#[derive(Default)] pub struct Signal { waker: CriticalSectionWakerRegistration, store: UnsafeCell>, } +impl Default for Signal { + fn default() -> Self { + Self::new() + } +} + unsafe impl Send for Signal {} unsafe impl Sync for Signal {}