hide future::Flatten

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
pull/465/head
Yoshua Wuyts 5 years ago
parent 9a8805678e
commit 929027796e
No known key found for this signature in database
GPG Key ID: 24EA8164F96777ED

@ -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