From 07b460fc0fc685047d1b54795a721fecfdf0d292 Mon Sep 17 00:00:00 2001 From: Emil Fresk Date: Sun, 23 Jun 2024 07:54:10 +0200 Subject: [PATCH] Fix `Default` for `rtic_sync::signal` --- rtic-sync/src/signal.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 {}