File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ use std::{
14
14
} ;
15
15
16
16
pin_project ! {
17
- /// Stream for the [`future_queue`](StreamExt::future_queue) method.
17
+ /// Stream for the [`future_queue`](crate:: StreamExt::future_queue) method.
18
18
#[ must_use = "streams do nothing unless polled" ]
19
19
pub struct FutureQueue <St >
20
20
where
Original file line number Diff line number Diff line change 98
98
99
99
mod future_queue;
100
100
101
+ pub use future_queue:: FutureQueue ;
102
+
101
103
use futures_util:: { Future , Stream } ;
102
104
103
105
impl < T : ?Sized > StreamExt for T where T : Stream { }
@@ -126,12 +128,12 @@ pub trait StreamExt: Stream {
126
128
/// # Examples
127
129
///
128
130
/// See [the crate documentation](crate#examples) for an example.
129
- fn future_queue < Fut > ( self , max_weight : usize ) -> future_queue :: FutureQueue < Self >
131
+ fn future_queue < Fut > ( self , max_weight : usize ) -> FutureQueue < Self >
130
132
where
131
133
Self : Sized + Stream < Item = ( usize , Fut ) > ,
132
134
Fut : Future ,
133
135
{
134
- assert_stream :: < Fut :: Output , _ > ( future_queue :: FutureQueue :: new ( self , max_weight) )
136
+ assert_stream :: < Fut :: Output , _ > ( FutureQueue :: new ( self , max_weight) )
135
137
}
136
138
}
137
139
You can’t perform that action at this time.
0 commit comments