stream: correct trait bounds for all (#2043)

This commit is contained in:
Artem Vorotnikov
2020-01-02 15:03:53 -08:00
committed by Carl Lerche
parent e43f28f6a8
commit 3736467dbb
+1
View File
@@ -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)
}