From 4532aaa16389ddf48285f400b49437183d441d6b Mon Sep 17 00:00:00 2001 From: Ali MJ Al-Nasrawy Date: Sat, 10 Jul 2021 00:26:59 +0300 Subject: [PATCH] fix typos --- actix-http/src/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actix-http/src/config.rs b/actix-http/src/config.rs index 5d0060f79..6661e18f3 100644 --- a/actix-http/src/config.rs +++ b/actix-http/src/config.rs @@ -354,7 +354,7 @@ mod tests { // Ensure the task will drop eventually let mut times = 0; while !notify_on_drop::is_dropped() { - sleep(Duartion::from_millis(100)).await; + sleep(Duration::from_millis(100)).await; times += 1; assert!(times < 10, "Timeout waiting for task drop"); } @@ -383,7 +383,7 @@ mod tests { // Ensure the task will drop eventually let mut times = 0; while !notify_on_drop::is_dropped() { - sleep(Duartion::from_millis(100)).await; + sleep(Duration::from_millis(100)).await; times += 1; assert!(times < 10, "Timeout waiting for task drop"); }