Skip to content

Commit

Permalink
Remove Stream implementation from VecDeque
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Oct 31, 2019
1 parent 0904be2 commit 5eb9c61
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions futures-core/src/stream.rs
Expand Up @@ -214,22 +214,6 @@ mod if_alloc {
}
}

impl<T: Unpin> Stream for alloc::collections::VecDeque<T> {
type Item = T;

fn poll_next(
mut self: Pin<&mut Self>,
_cx: &mut Context<'_>,
) -> Poll<Option<Self::Item>> {
Poll::Ready(self.pop_front())
}

fn size_hint(&self) -> (usize, Option<usize>) {
let len = self.len();
(len, Some(len))
}
}

#[cfg(feature = "std")]
impl<S: Stream> Stream for std::panic::AssertUnwindSafe<S> {
type Item = S::Item;
Expand Down

0 comments on commit 5eb9c61

Please sign in to comment.