From 2964e72b00bacda6687fd7f491226a135a220cbc Mon Sep 17 00:00:00 2001 From: Yoshua Wuyts Date: Wed, 18 Sep 2019 12:43:34 +0200 Subject: [PATCH] Update src/future/timeout.rs Co-Authored-By: Stjepan Glavina --- src/future/timeout.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/future/timeout.rs b/src/future/timeout.rs index 566d27a..aa88f64 100644 --- a/src/future/timeout.rs +++ b/src/future/timeout.rs @@ -29,7 +29,7 @@ use crate::task::{Context, Poll}; /// # Ok(()) }) } /// ``` #[cfg_attr(feature = "docs", doc(cfg(unstable)))] -#[cfg(feature = "unstable")] +#[cfg(any(feature = "unstable", feature = "docs"))] pub async fn timeout(dur: Duration, f: F) -> Result where F: Future,