From 3736467dbb74ea6d14091cf1cac3ce08e1fcb911 Mon Sep 17 00:00:00 2001 From: Artem Vorotnikov Date: Fri, 3 Jan 2020 02:03:53 +0300 Subject: [PATCH] stream: correct trait bounds for all (#2043) --- tokio/src/stream/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tokio/src/stream/mod.rs b/tokio/src/stream/mod.rs index c6d22f357..a99dfca3c 100644 --- a/tokio/src/stream/mod.rs +++ b/tokio/src/stream/mod.rs @@ -318,6 +318,7 @@ pub trait StreamExt: Stream { fn all(&mut self, f: F) -> AllFuture<'_, Self, F> where Self: Unpin, + F: FnMut(Self::Item) -> bool, { AllFuture::new(self, f) }