We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1f7be5 commit 54fa559Copy full SHA for 54fa559
src/future/timeout.rs
@@ -51,7 +51,8 @@ pin_project! {
51
}
52
53
impl<F> TimeoutFuture<F> {
54
- pub fn new(future: F, dur: Duration) -> TimeoutFuture<F> {
+ #[allow(dead_code)]
55
+ pub(super) fn new(future: F, dur: Duration) -> TimeoutFuture<F> {
56
TimeoutFuture { future: future, delay: Delay::new(dur) }
57
58
0 commit comments