forked from mirror/async-std
Merge pull request #465 from async-rs/non-pub-flatten
hide future::Flatten::new
This commit is contained in:
commit
2cb887e154
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