mirror of
https://github.com/async-rs/async-std.git
synced 2025-02-28 23:29:41 +00:00
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> {
|
||||
pub fn new(future: Fut1) -> FlattenFuture<Fut1, Fut2> {
|
||||
pub(crate) fn new(future: Fut1) -> FlattenFuture<Fut1, Fut2> {
|
||||
FlattenFuture {
|
||||
state: State::First(future),
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue