Add #[inline] to RawWaker::new

This commit is contained in:
Tomasz Miąsko 2020-07-26 00:00:00 +00:00
parent ac48e62db8
commit 0a51a9fb00

View File

@ -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")]