Skip to content

Commit 038a5af

Browse files
committed
export FutureQueue in public API
Whoops.
1 parent 1055522 commit 038a5af

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/future_queue.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use std::{
1414
};
1515

1616
pin_project! {
17-
/// Stream for the [`future_queue`](StreamExt::future_queue) method.
17+
/// Stream for the [`future_queue`](crate::StreamExt::future_queue) method.
1818
#[must_use = "streams do nothing unless polled"]
1919
pub struct FutureQueue<St>
2020
where

src/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@
9898
9999
mod future_queue;
100100

101+
pub use future_queue::FutureQueue;
102+
101103
use futures_util::{Future, Stream};
102104

103105
impl<T: ?Sized> StreamExt for T where T: Stream {}
@@ -126,12 +128,12 @@ pub trait StreamExt: Stream {
126128
/// # Examples
127129
///
128130
/// 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>
130132
where
131133
Self: Sized + Stream<Item = (usize, Fut)>,
132134
Fut: Future,
133135
{
134-
assert_stream::<Fut::Output, _>(future_queue::FutureQueue::new(self, max_weight))
136+
assert_stream::<Fut::Output, _>(FutureQueue::new(self, max_weight))
135137
}
136138
}
137139

0 commit comments

Comments
 (0)