Skip to content

Commit 0bef79e

Browse files
authored
Use #[inline(always)] on clone_arc_raw (#2865)
1 parent a965f6c commit 0bef79e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: futures-task/src/waker.rs

+1
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)