chore: fix CI for Rust 1.52 (#3758)

This commit is contained in:
sb64
2021-05-06 22:26:27 +02:00
committed by GitHub
parent d4075a4457
commit 6b9bdd5ca2
-3
View File
@@ -359,9 +359,6 @@ async fn join_with_select() {
async fn use_future_in_if_condition() {
use tokio::time::{self, Duration};
let sleep = time::sleep(Duration::from_millis(50));
tokio::pin!(sleep);
tokio::select! {
_ = time::sleep(Duration::from_millis(50)), if false => {
panic!("if condition ignored")