Skip to content

Commit

Permalink
Use #[inline(always)] on clone_arc_raw (#2865)
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheyca authored and taiki-e committed Oct 5, 2024
1 parent 549b90b commit 87afaf3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions futures-task/src/waker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ unsafe fn increase_refcount<T: ArcWake + 'static>(data: *const ()) {
}

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

0 comments on commit 87afaf3

Please sign in to comment.