Skip to content

Commit 9c67118

Browse files
committed
Don't expose the double_ended_stream sub-module
1 parent d474c4e commit 9c67118

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/stream/double_ended_stream/mod.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ pub trait DoubleEndedStream: Stream {
105105
```
106106
# fn main() { async_std::task::block_on(async {
107107
#
108-
use async_std::stream::double_ended_stream::DoubleEndedStream;
108+
use async_std::prelude::*;
109109
use async_std::stream::from_iter;
110110
111111
let mut s = from_iter(vec![7u8]);
@@ -133,7 +133,7 @@ pub trait DoubleEndedStream: Stream {
133133
```
134134
# fn main() { async_std::task::block_on(async {
135135
#
136-
use async_std::stream::double_ended_stream::DoubleEndedStream;
136+
use async_std::prelude::*;
137137
use async_std::stream::from_iter;
138138
139139
let mut s = from_iter(vec![1u8, 2, 3, 4, 5]);
@@ -161,7 +161,7 @@ pub trait DoubleEndedStream: Stream {
161161
```
162162
# fn main() { async_std::task::block_on(async {
163163
#
164-
use async_std::stream::double_ended_stream::DoubleEndedStream;
164+
use async_std::prelude::*;
165165
use async_std::stream::from_iter;
166166
167167
let mut s = from_iter(vec![1u8, 2, 3, 4, 5]);
@@ -188,7 +188,7 @@ pub trait DoubleEndedStream: Stream {
188188
```
189189
# fn main() { async_std::task::block_on(async {
190190
#
191-
use async_std::stream::double_ended_stream::DoubleEndedStream;
191+
use async_std::prelude::*;
192192
use async_std::stream::from_iter;
193193
194194
let s = from_iter(vec![1u8, 2, 3, 4, 5]);
@@ -219,7 +219,7 @@ pub trait DoubleEndedStream: Stream {
219219
```
220220
# fn main() { async_std::task::block_on(async {
221221
#
222-
use async_std::stream::double_ended_stream::DoubleEndedStream;
222+
use async_std::prelude::*;
223223
use async_std::stream::from_iter;
224224
225225
let s = from_iter(vec![1u8, 2, 3, 4, 5]);

src/stream/mod.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,7 @@ mod repeat;
318318
mod repeat_with;
319319

320320
cfg_unstable! {
321-
#[doc(hidden)]
322-
pub mod double_ended_stream;
321+
mod double_ended_stream;
323322
mod exact_size_stream;
324323
mod extend;
325324
mod from_stream;

0 commit comments

Comments
 (0)