Diffstat (limited to 'src/effect.rs')
| -rw-r--r-- | src/effect.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/effect.rs b/src/effect.rs index 920ee0e..3e3b8da 100644 --- a/src/effect.rs +++ b/src/effect.rs @@ -155,6 +155,7 @@ higher_ranked_type! { impl<B: BlockOn> Effect for Blocking<B> { type Future<T: Send> = core::future::Ready<T>; + #[inline(always)] fn wrap<'a, F>(future: F) -> SendFuture::T<'a, F::Output, Self::Future<F::Output>> where F: core::future::Future + Send + 'a, @@ -163,10 +164,12 @@ impl<B: BlockOn> Effect for Blocking<B> { core::future::ready(B::block_on(future)) } + #[inline(always)] fn ready<'a, T: Send>(value: T) -> SendFuture::T<'a, T, Self::Future<T>> { core::future::ready(value) } + #[inline(always)] fn map<'a, T, U, F>( future: SendFuture::T<'a, T, Self::Future<T>>, func: F, |