mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-18 00:00:09 +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>
|
||||
where
|
||||
Self: Unpin,
|
||||
F: FnMut(Self::Item) -> bool,
|
||||
{
|
||||
AllFuture::new(self, f)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user