From cdd4215e8fdd0298c9346f9bcaf7b1dabc48e1d3 Mon Sep 17 00:00:00 2001 From: Fedor Sakharov Date: Wed, 11 Sep 2019 10:09:52 +0300 Subject: [PATCH] forgot None case --- src/stream/stream/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/stream/stream/mod.rs b/src/stream/stream/mod.rs index 3fe565b..68df3e7 100644 --- a/src/stream/stream/mod.rs +++ b/src/stream/stream/mod.rs @@ -157,6 +157,7 @@ pub trait Stream { /// assert_eq!(s.next().await, Some((0, 'a'))); /// assert_eq!(s.next().await, Some((1, 'b'))); /// assert_eq!(s.next().await, Some((2, 'c'))); + /// assert_eq!(s.next().await, None); /// /// # /// # }) }