Skip to content

Commit 97b4901

Browse files
committed
Fixing tests
1 parent 1eeb101 commit 97b4901

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/future/future/mod.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,10 +364,13 @@ extension_trait! {
364364
# Example
365365
```
366366
# async_std::task::block_on(async {
367-
#
367+
#
368+
use std::time::Duration;
369+
368370
use async_std::prelude::*;
369371
use async_std::future;
370-
372+
use async_std::task;
373+
371374
let fut = future::ready(0);
372375
let dur = Duration::from_millis(100);
373376
let res = fut.timeout(dur).await;

0 commit comments

Comments
 (0)