From 60d81bbe10faf344ea18438a1c5ecb9173e6ec52 Mon Sep 17 00:00:00 2001 From: Juan Alvarez Date: Thu, 8 Oct 2020 22:35:12 -0500 Subject: time: rename `Delay` future to `Sleep` (#2932) --- tokio-test/src/io.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tokio-test/src') 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, waiting: Option, - sleep: Option, + sleep: Option, read_wait: Option, rx: mpsc::UnboundedReceiver, } -- cgit v1.2.3