mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-07 00:00:08 +02:00
stream: correct trait bounds for all (#2043)
This commit is contained in:
committed by
Carl Lerche
parent
e43f28f6a8
commit
3736467dbb
@@ -318,6 +318,7 @@ pub trait StreamExt: Stream {
|
|||||||
fn all<F>(&mut self, f: F) -> AllFuture<'_, Self, F>
|
fn all<F>(&mut self, f: F) -> AllFuture<'_, Self, F>
|
||||||
where
|
where
|
||||||
Self: Unpin,
|
Self: Unpin,
|
||||||
|
F: FnMut(Self::Item) -> bool,
|
||||||
{
|
{
|
||||||
AllFuture::new(self, f)
|
AllFuture::new(self, f)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user