Skip to content

Commit 4176369

Browse files
OldKrabtaiki-e
authored andcommitted
Inline remaining RawWaker clone functions
1 parent f17a895 commit 4176369

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

futures-task/src/noop_waker.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
use core::ptr::null;
44
use core::task::{RawWaker, RawWakerVTable, Waker};
55

6+
#[inline(always)]
67
unsafe fn noop_clone(_data: *const ()) -> RawWaker {
78
noop_raw_waker()
89
}

futures-test/src/task/panic_waker.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use core::ptr::null;
22
use futures_core::task::{RawWaker, RawWakerVTable, Waker};
33

4+
#[inline(always)]
45
unsafe fn clone_panic_waker(_data: *const ()) -> RawWaker {
56
raw_panic_waker()
67
}

0 commit comments

Comments
 (0)