From 87d2afaebdaec9bd0af659521e1de9ed0ae20aad Mon Sep 17 00:00:00 2001 From: timofey Date: Fri, 14 Jun 2024 20:09:13 +0000 Subject: [PATCH] `#[inline(always)]` on `clone_arc_raw` --- 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::())