Skip to content

Commit 3dc33f5

Browse files
committed
fixes after #145
1 parent 9b36582 commit 3dc33f5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/stream/stream/enumerate.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
use crate::task::{Context, Poll};
22
use std::pin::Pin;
33

4+
use crate::stream::Stream;
5+
46
#[doc(hidden)]
57
#[allow(missing_debug_implementations)]
68
pub struct Enumerate<S> {
@@ -19,7 +21,7 @@ impl<S> Enumerate<S> {
1921

2022
impl<S> futures_core::stream::Stream for Enumerate<S>
2123
where
22-
S: futures_core::stream::Stream,
24+
S: Stream + Unpin + Sized,
2325
{
2426
type Item = (usize, S::Item);
2527

0 commit comments

Comments
 (0)