Changing scope of disclosure

This commit is contained in:
Miguel Pérez García 2019-12-05 08:09:20 -06:00
parent c1f7be5d42
commit 54fa559554

View file

@ -51,7 +51,8 @@ pin_project! {
}
impl<F> TimeoutFuture<F> {
pub fn new(future: F, dur: Duration) -> TimeoutFuture<F> {
#[allow(dead_code)]
pub(super) fn new(future: F, dur: Duration) -> TimeoutFuture<F> {
TimeoutFuture { future: future, delay: Delay::new(dur) }
}
}