Skip to content

Commit

Permalink
Merge pull request #465 from async-rs/non-pub-flatten
Browse files Browse the repository at this point in the history
hide future::Flatten::new
  • Loading branch information
yoshuawuyts committed Nov 7, 2019
2 parents 9a88056 + 9290277 commit 2cb887e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/future/future/flatten.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
Expand Down

0 comments on commit 2cb887e

Please sign in to comment.