We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e5dede commit b0038e1Copy full SHA for b0038e1
src/stream/once.rs
@@ -4,7 +4,9 @@ use pin_project_lite::pin_project;
4
5
use crate::stream::Stream;
6
use crate::task::{Context, Poll};
7
-use crate::stream::double_ended_stream::DoubleEndedStream;
+
8
+#[cfg(feature = "unstable")]
9
+use crate::stream::DoubleEndedStream;
10
11
/// Creates a stream that yields a single item.
12
///
@@ -48,6 +50,7 @@ impl<T> Stream for Once<T> {
48
50
}
49
51
52
53
54
impl <T> DoubleEndedStream for Once<T> {
55
fn poll_next_back(self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll<Option<Self::Item>> {
56
Poll::Ready(self.project().value.take())
0 commit comments