diff options
author | Taiki Endo <te316e89@gmail.com> | 2020-06-07 20:38:02 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-07 20:38:02 +0900 |
commit | 4010335c84517571e9b2d13f66f7c72170493622 (patch) | |
tree | b06be19d70869ce78455ede878ab56702de5a505 /tokio/tests/rt_basic.rs | |
parent | be4577e22f7d0e899501b67408b5befff5adda29 (diff) |
chore: fix ci failure on master (#2593)
* Fix clippy warnings
* Pin rustc version to 1.43.1 in macOS
Refs: https://github.com/rust-lang/rust/issues/73030
Diffstat (limited to 'tokio/tests/rt_basic.rs')
-rw-r--r-- | tokio/tests/rt_basic.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tokio/tests/rt_basic.rs b/tokio/tests/rt_basic.rs index b9e373b8..9a1a432e 100644 --- a/tokio/tests/rt_basic.rs +++ b/tokio/tests/rt_basic.rs @@ -65,7 +65,7 @@ fn no_extra_poll() { let mut rt = rt(); - rt.spawn(async move { while let Some(_) = rx.next().await {} }); + rt.spawn(async move { while rx.next().await.is_some() {} }); rt.block_on(async { tokio::task::yield_now().await; }); |