Merge pull request #465 from async-rs/non-pub-flatten

hide future::Flatten::new
poc-serde-support
Yoshua Wuyts 5 years ago committed by GitHub
commit 2cb887e154
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save