Skip to content

Commit

Permalink
stream: fix StreamMap Default bound (#3093)
Browse files Browse the repository at this point in the history
  • Loading branch information
vorot93 committed Nov 3, 2020
1 parent 42de3bc commit 06c7e73
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tokio/src/stream/stream_map.rs
Expand Up @@ -156,7 +156,7 @@ use std::task::{Context, Poll};
/// }
/// }
/// ```
#[derive(Debug, Default)]
#[derive(Debug)]
pub struct StreamMap<K, V> {
/// Streams stored in the map
entries: Vec<(K, V)>,
Expand Down Expand Up @@ -513,6 +513,12 @@ where
}
}

impl<K, V> Default for StreamMap<K, V> {
fn default() -> Self {
Self::new()
}
}

impl<K, V> Stream for StreamMap<K, V>
where
K: Clone + Unpin,
Expand Down

0 comments on commit 06c7e73

Please sign in to comment.