diff options
author | Artem Vorotnikov <artem@vorotnikov.me> | 2019-12-14 09:01:47 +0300 |
---|---|---|
committer | Carl Lerche <me@carllerche.com> | 2019-12-13 22:01:47 -0800 |
commit | d593c5b051f07bde5117122216a356632986b6dd (patch) | |
tree | 87df3c4dd3a4cda23ae1125e8b78358804385edb /tokio-test | |
parent | 91ecb4b4c2ec202b6754ccb5fb266a84fe3a7327 (diff) |
chore: remove benches and fix/work around clippy lints (#1952)
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; + }); } |