From b92f4c55a3f8e9ffd2201b7a2c1827343339c92e Mon Sep 17 00:00:00 2001 From: AF Date: Sat, 14 Sep 2024 15:20:28 +0300 Subject: [PATCH] Use `#[inline(always)]` on `clone_arc_raw` (#2865) --- futures-task/src/waker.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/futures-task/src/waker.rs b/futures-task/src/waker.rs index b1410a192..747457a52 100644 --- a/futures-task/src/waker.rs +++ b/futures-task/src/waker.rs @@ -36,6 +36,7 @@ unsafe fn increase_refcount(data: *const ()) { } // used by `waker_ref` +#[inline(always)] unsafe fn clone_arc_raw(data: *const ()) -> RawWaker { unsafe { increase_refcount::(data) } RawWaker::new(data, waker_vtable::())