From d55cfb1da82a247d3a3d52b7a3e957e9d9bae2cd Mon Sep 17 00:00:00 2001 From: Stjepan Glavina Date: Sun, 22 Sep 2019 12:44:46 +0200 Subject: [PATCH] impl FusedStream for Fuse --- src/stream/stream/fuse.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/stream/stream/fuse.rs b/src/stream/stream/fuse.rs index 35419370..13850c5a 100644 --- a/src/stream/stream/fuse.rs +++ b/src/stream/stream/fuse.rs @@ -31,3 +31,9 @@ impl futures_core::Stream for Fuse { } } } + +impl futures_core::stream::FusedStream for Fuse { + fn is_terminated(&self) -> bool { + self.done + } +}