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 Sep 15, 2024
1 parent 0cb6d5a commit b92f4c5
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 @@ -36,6 +36,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 b92f4c5

Please sign in to comment.