diff --git a/src/core/utils/stream/expect.rs b/src/core/utils/stream/expect.rs index 3509bb83..ec572714 100644 --- a/src/core/utils/stream/expect.rs +++ b/src/core/utils/stream/expect.rs @@ -10,7 +10,7 @@ pub trait TryExpect<'a, Item> { impl<'a, T, Item> TryExpect<'a, Item> for T where - T: Stream<Item = Result<Item>> + TryStream + Send + 'a, + T: Stream<Item = Result<Item>> + Send + TryStream + 'a, Item: 'a, { #[inline] diff --git a/src/core/utils/stream/ready.rs b/src/core/utils/stream/ready.rs index dce7d378..38feaf64 100644 --- a/src/core/utils/stream/ready.rs +++ b/src/core/utils/stream/ready.rs @@ -16,7 +16,7 @@ use futures::{ /// This interface is not necessarily complete; feel free to add as-needed. pub trait ReadyExt<Item> where - Self: Stream<Item = Item> + Send + Sized, + Self: Stream<Item = Item> + Sized, { fn ready_all<F>(self, f: F) -> All<Self, Ready<bool>, impl FnMut(Item) -> Ready<bool>> where @@ -93,7 +93,7 @@ where impl<Item, S> ReadyExt<Item> for S where - S: Stream<Item = Item> + Send + Sized, + S: Stream<Item = Item> + Sized, { #[inline] fn ready_all<F>(self, f: F) -> All<Self, Ready<bool>, impl FnMut(Item) -> Ready<bool>> diff --git a/src/core/utils/stream/try_ready.rs b/src/core/utils/stream/try_ready.rs index 611c177f..287fa1e1 100644 --- a/src/core/utils/stream/try_ready.rs +++ b/src/core/utils/stream/try_ready.rs @@ -13,8 +13,8 @@ use crate::Result; /// This interface is not necessarily complete; feel free to add as-needed. pub trait TryReadyExt<T, E, S> where - S: TryStream<Ok = T, Error = E, Item = Result<T, E>> + Send + ?Sized, - Self: TryStream + Send + Sized, + S: TryStream<Ok = T, Error = E, Item = Result<T, E>> + ?Sized, + Self: TryStream + Sized, { fn ready_and_then<U, F>( self, @@ -67,8 +67,8 @@ where impl<T, E, S> TryReadyExt<T, E, S> for S where - S: TryStream<Ok = T, Error = E, Item = Result<T, E>> + Send + ?Sized, - Self: TryStream + Send + Sized, + S: TryStream<Ok = T, Error = E, Item = Result<T, E>> + ?Sized, + Self: TryStream + Sized, { #[inline] fn ready_and_then<U, F>( diff --git a/src/core/utils/stream/try_tools.rs b/src/core/utils/stream/try_tools.rs index ea3b50fc..417806fc 100644 --- a/src/core/utils/stream/try_tools.rs +++ b/src/core/utils/stream/try_tools.rs @@ -8,8 +8,8 @@ use crate::Result; /// TryStreamTools pub trait TryTools<T, E, S> where - S: TryStream<Ok = T, Error = E, Item = Result<T, E>> + Send + ?Sized, - Self: TryStream + Send + Sized, + S: TryStream<Ok = T, Error = E, Item = Result<T, E>> + ?Sized, + Self: TryStream + Sized, { fn try_take( self, @@ -23,8 +23,8 @@ where impl<T, E, S> TryTools<T, E, S> for S where - S: TryStream<Ok = T, Error = E, Item = Result<T, E>> + Send + ?Sized, - Self: TryStream + Send + Sized, + S: TryStream<Ok = T, Error = E, Item = Result<T, E>> + ?Sized, + Self: TryStream + Sized, { #[inline] fn try_take(