summaryrefslogtreecommitdiffstats
path: root/tokio/tests/macros_select.rs
diff options
context:
space:
mode:
authorJuan Alvarez <j@yabit.io>2020-10-08 22:35:12 -0500
committerGitHub <noreply@github.com>2020-10-08 20:35:12 -0700
commit60d81bbe10faf344ea18438a1c5ecb9173e6ec52 (patch)
tree4a6b64401944b62ffa872147e5738eb28e70d4ec /tokio/tests/macros_select.rs
parentb704c53b9cc76eaf8c9c6585f8444c4515d27728 (diff)
time: rename `Delay` future to `Sleep` (#2932)
Diffstat (limited to 'tokio/tests/macros_select.rs')
-rw-r--r--tokio/tests/macros_select.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tokio/tests/macros_select.rs b/tokio/tests/macros_select.rs
index f77f3f01..cc214bbb 100644
--- a/tokio/tests/macros_select.rs
+++ b/tokio/tests/macros_select.rs
@@ -359,10 +359,10 @@ async fn join_with_select() {
async fn use_future_in_if_condition() {
use tokio::time::{self, Duration};
- let mut delay = time::sleep(Duration::from_millis(50));
+ let mut sleep = time::sleep(Duration::from_millis(50));
tokio::select! {
- _ = &mut delay, if !delay.is_elapsed() => {
+ _ = &mut sleep, if !sleep.is_elapsed() => {
}
_ = async { 1 } => {
}