Skip to content

Commit

Permalink
stream: correct trait bounds for all (tokio-rs#2043)
Browse files Browse the repository at this point in the history
  • Loading branch information
vorot93 authored and carllerche committed Jan 2, 2020
1 parent e43f28f commit 3736467
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tokio/src/stream/mod.rs
Expand Up @@ -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)
}
Expand Down

0 comments on commit 3736467

Please sign in to comment.