We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b36582 commit 3dc33f5Copy full SHA for 3dc33f5
src/stream/stream/enumerate.rs
@@ -1,6 +1,8 @@
1
use crate::task::{Context, Poll};
2
use std::pin::Pin;
3
4
+use crate::stream::Stream;
5
+
6
#[doc(hidden)]
7
#[allow(missing_debug_implementations)]
8
pub struct Enumerate<S> {
@@ -19,7 +21,7 @@ impl<S> Enumerate<S> {
19
21
20
22
impl<S> futures_core::stream::Stream for Enumerate<S>
23
where
- S: futures_core::stream::Stream,
24
+ S: Stream + Unpin + Sized,
25
{
26
type Item = (usize, S::Item);
27
0 commit comments