From cc85533f7c50b9c15fdaac840001c057cb73b734 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20P=C3=A9rez=20Garc=C3=ADa?= Date: Thu, 5 Dec 2019 21:15:32 -0600 Subject: [PATCH] fixing format --- tests/timeout_future.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/timeout_future.rs b/tests/timeout_future.rs index e1dfb4e1..e6e4b344 100644 --- a/tests/timeout_future.rs +++ b/tests/timeout_future.rs @@ -2,13 +2,13 @@ use std::time::Duration; -use async_std::prelude::*; use async_std::future; +use async_std::prelude::*; use async_std::task; #[test] fn should_timeout() { - task::block_on(async { + task::block_on(async { let fut = future::pending::<()>(); let dur = Duration::from_millis(100); let res = fut.timeout(dur).await; @@ -18,10 +18,10 @@ fn should_timeout() { #[test] fn should_not_timeout() { - task::block_on(async { + task::block_on(async { let fut = future::ready(0); let dur = Duration::from_millis(100); let res = fut.timeout(dur).await; assert!(res.is_ok()); }); -} \ No newline at end of file +}