diff options
Diffstat (limited to 'tokio-test')
-rw-r--r-- | tokio-test/src/task.rs | 2 | ||||
-rw-r--r-- | tokio-test/tests/block_on.rs | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/tokio-test/src/task.rs b/tokio-test/src/task.rs index c21e31a5..4790de54 100644 --- a/tokio-test/src/task.rs +++ b/tokio-test/src/task.rs @@ -1,5 +1,7 @@ //! Futures task based helpers +#![allow(clippy::mutex_atomic)] + use futures_core::Stream; use std::future::Future; use std::mem; diff --git a/tokio-test/tests/block_on.rs b/tokio-test/tests/block_on.rs index 7aec82cc..d640a13c 100644 --- a/tokio-test/tests/block_on.rs +++ b/tokio-test/tests/block_on.rs @@ -20,10 +20,8 @@ fn async_fn() { #[test] fn test_delay() { let deadline = Instant::now() + Duration::from_millis(100); - assert_eq!( - (), - block_on(async { - delay_until(deadline).await; - }) - ); + + block_on(async { + delay_until(deadline).await; + }); } |