From 97b4901b7528d3aae89d86438461408080c4bcc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20P=C3=A9rez=20Garc=C3=ADa?= Date: Tue, 17 Dec 2019 23:12:09 -0600 Subject: [PATCH] Fixing tests --- src/future/future/mod.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/future/future/mod.rs b/src/future/future/mod.rs index eea0ffb..dea0ade 100644 --- a/src/future/future/mod.rs +++ b/src/future/future/mod.rs @@ -364,10 +364,13 @@ extension_trait! { # Example ``` # async_std::task::block_on(async { - # + # + use std::time::Duration; + use async_std::prelude::*; use async_std::future; - + use async_std::task; + let fut = future::ready(0); let dur = Duration::from_millis(100); let res = fut.timeout(dur).await;