2
0
Fork 1
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:
Yoshua Wuyts 2019-11-07 03:06:38 +01:00
parent 9a8805678e
commit 929027796e
No known key found for this signature in database
GPG key ID: 24EA8164F96777ED

View file

@ -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),
} }