Merge pull request #2112 from AzazKamaz/patch-1

Fix #2100 - function address comparison
This commit is contained in:
Dario Nieuwenhuis 2023-10-25 11:53:52 +00:00 committed by GitHub
commit 0cc3e18db6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,7 @@ use core::task::{RawWaker, RawWakerVTable, Waker};
use super::{wake_task, TaskHeader, TaskRef}; 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 { unsafe fn clone(p: *const ()) -> RawWaker {
RawWaker::new(p, &VTABLE) RawWaker::new(p, &VTABLE)