diff options
Diffstat (limited to 'tokio-test/src')
-rw-r--r-- | tokio-test/src/io.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tokio-test/src/io.rs b/tokio-test/src/io.rs index 3d04a58a..7cfad2ec 100644 --- a/tokio-test/src/io.rs +++ b/tokio-test/src/io.rs @@ -20,7 +20,7 @@ use tokio::io::{AsyncRead, AsyncWrite, ReadBuf}; use tokio::sync::mpsc; -use tokio::time::{self, Delay, Duration, Instant}; +use tokio::time::{self, Duration, Instant, Sleep}; use futures_core::ready; use std::collections::VecDeque; @@ -67,7 +67,7 @@ enum Action { struct Inner { actions: VecDeque<Action>, waiting: Option<Instant>, - sleep: Option<Delay>, + sleep: Option<Sleep>, read_wait: Option<Waker>, rx: mpsc::UnboundedReceiver<Action>, } |