Skip to content

Commit 0c0b39f

Browse files
afeisteltaiki-e
authored andcommitted
Use #[inline(always)] on clone_arc_raw (#2865)
1 parent 721d7e6 commit 0c0b39f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

futures-task/src/waker.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ unsafe fn increase_refcount<T: ArcWake + 'static>(data: *const ()) {
3737
}
3838

3939
// used by `waker_ref`
40+
#[inline(always)]
4041
unsafe fn clone_arc_raw<T: ArcWake + 'static>(data: *const ()) -> RawWaker {
4142
unsafe { increase_refcount::<T>(data) }
4243
RawWaker::new(data, waker_vtable::<T>())

0 commit comments

Comments
 (0)