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 committed by Jade Ellis
parent 1b1198771f
commit 173c0b35ad
No known key found for this signature in database
GPG key ID: 8705A2A3EBF77BD2
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>>