2
0
Fork 1
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:
Yoshua Wuyts 2019-11-07 03:18:43 +01:00 committed by GitHub
commit 2cb887e154
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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