From 6b19c0abd15afa03546f08bc54164c19886e56bc Mon Sep 17 00:00:00 2001 From: Aleksandr Krotov Date: Wed, 25 Oct 2023 11:01:35 +0300 Subject: [PATCH] Fix #2100 - function address comparison --- embassy-executor/src/raw/waker.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embassy-executor/src/raw/waker.rs b/embassy-executor/src/raw/waker.rs index 400b37fa..522853e3 100644 --- a/embassy-executor/src/raw/waker.rs +++ b/embassy-executor/src/raw/waker.rs @@ -3,7 +3,7 @@ use core::task::{RawWaker, RawWakerVTable, Waker}; use super::{wake_task, TaskHeader, TaskRef}; -const VTABLE: RawWakerVTable = RawWakerVTable::new(clone, wake, wake, drop); +static VTABLE: RawWakerVTable = RawWakerVTable::new(clone, wake, wake, drop); unsafe fn clone(p: *const ()) -> RawWaker { RawWaker::new(p, &VTABLE)