Skip to content

Commit b92f4c5

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

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
@@ -36,6 +36,7 @@ unsafe fn increase_refcount<T: ArcWake + 'static>(data: *const ()) {
3636
}
3737

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

0 commit comments

Comments
 (0)