mirror of
https://github.com/async-rs/async-std.git
synced 2025-01-19 20:13:51 +00:00
hide future::Flatten
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
This commit is contained in:
parent
9a8805678e
commit
929027796e
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ enum State<Fut1, Fut2> {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<Fut1, Fut2> FlattenFuture<Fut1, Fut2> {
|
impl<Fut1, Fut2> FlattenFuture<Fut1, Fut2> {
|
||||||
pub fn new(future: Fut1) -> FlattenFuture<Fut1, Fut2> {
|
pub(crate) fn new(future: Fut1) -> FlattenFuture<Fut1, Fut2> {
|
||||||
FlattenFuture {
|
FlattenFuture {
|
||||||
state: State::First(future),
|
state: State::First(future),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue