diff --git a/tokio/src/stream/stream_map.rs b/tokio/src/stream/stream_map.rs index 8539e4dada1..9fed3c19679 100644 --- a/tokio/src/stream/stream_map.rs +++ b/tokio/src/stream/stream_map.rs @@ -156,7 +156,7 @@ use std::task::{Context, Poll}; /// } /// } /// ``` -#[derive(Debug, Default)] +#[derive(Debug)] pub struct StreamMap { /// Streams stored in the map entries: Vec<(K, V)>, @@ -513,6 +513,12 @@ where } } +impl Default for StreamMap { + fn default() -> Self { + Self::new() + } +} + impl Stream for StreamMap where K: Clone + Unpin,