relax Send requirement on some drier stream extensions

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2025-04-06 05:52:48 +00:00
parent d8311a5ff6
commit ce6e5e48de
4 changed files with 11 additions and 11 deletions

View File

@@ -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>>