From 0a51a9fb0013b33ddec221343b2fbfcd475b286f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Mi=C4=85sko?= Date: Sun, 26 Jul 2020 00:00:00 +0000 Subject: [PATCH] Add #[inline] to RawWaker::new --- library/core/src/task/wake.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/library/core/src/task/wake.rs b/library/core/src/task/wake.rs index b070b665b4d..92057209d8b 100644 --- a/library/core/src/task/wake.rs +++ b/library/core/src/task/wake.rs @@ -37,6 +37,7 @@ impl RawWaker { /// The `vtable` customizes the behavior of a `Waker` which gets created /// from a `RawWaker`. For each operation on the `Waker`, the associated /// function in the `vtable` of the underlying `RawWaker` will be called. + #[inline] #[rustc_promotable] #[stable(feature = "futures_api", since = "1.36.0")] #[rustc_const_stable(feature = "futures_api", since = "1.36.0")]