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 Sep 14, 2024
1 parent a965f6c commit 0bef79e
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 0bef79e

Please sign in to comment.