Skip to content

adds stream::enumerate combinator #178

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Sep 17, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixes after #145
  • Loading branch information
montekki committed Sep 11, 2019
commit 3dc33f54b49f5b3ccf129730e03ab8de39fcce9d
4 changes: 3 additions & 1 deletion src/stream/stream/enumerate.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
use crate::task::{Context, Poll};
use std::pin::Pin;

use crate::stream::Stream;

#[doc(hidden)]
#[allow(missing_debug_implementations)]
pub struct Enumerate<S> {
Expand All @@ -19,7 +21,7 @@ impl<S> Enumerate<S> {

impl<S> futures_core::stream::Stream for Enumerate<S>
where
S: futures_core::stream::Stream,
S: Stream + Unpin + Sized,
{
type Item = (usize, S::Item);

Expand Down