From 95ba3f1b2c207e538d4d099c366cab0cf519375d Mon Sep 17 00:00:00 2001 From: Juraj Sadel Date: Tue, 24 Sep 2024 09:27:04 +0200 Subject: [PATCH] Update esp-hal/src/timer/timg.rs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Dániel Buga --- esp-hal/src/timer/timg.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/esp-hal/src/timer/timg.rs b/esp-hal/src/timer/timg.rs index 35beb2a1226..cb99ec8a73a 100644 --- a/esp-hal/src/timer/timg.rs +++ b/esp-hal/src/timer/timg.rs @@ -1114,8 +1114,7 @@ mod asynch { } #[allow(clippy::declare_interior_mutable_const)] - const INIT: AtomicWaker = AtomicWaker::new(); - static WAKERS: [AtomicWaker; NUM_WAKERS] = [INIT; NUM_WAKERS]; + static WAKERS: [AtomicWaker; NUM_WAKERS] = [const { AtomicWaker::new() }; NUM_WAKERS]; pub(crate) struct TimerFuture<'a, T> where