Skip to content

Commit 54fa559

Browse files
committed
Changing scope of disclosure
1 parent c1f7be5 commit 54fa559

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/future/timeout.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ pin_project! {
5151
}
5252

5353
impl<F> TimeoutFuture<F> {
54-
pub fn new(future: F, dur: Duration) -> TimeoutFuture<F> {
54+
#[allow(dead_code)]
55+
pub(super) fn new(future: F, dur: Duration) -> TimeoutFuture<F> {
5556
TimeoutFuture { future: future, delay: Delay::new(dur) }
5657
}
5758
}

0 commit comments

Comments
 (0)