mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-07 00:00:08 +02:00
chore: fix CI for Rust 1.52 (#3758)
This commit is contained in:
@@ -359,9 +359,6 @@ async fn join_with_select() {
|
|||||||
async fn use_future_in_if_condition() {
|
async fn use_future_in_if_condition() {
|
||||||
use tokio::time::{self, Duration};
|
use tokio::time::{self, Duration};
|
||||||
|
|
||||||
let sleep = time::sleep(Duration::from_millis(50));
|
|
||||||
tokio::pin!(sleep);
|
|
||||||
|
|
||||||
tokio::select! {
|
tokio::select! {
|
||||||
_ = time::sleep(Duration::from_millis(50)), if false => {
|
_ = time::sleep(Duration::from_millis(50)), if false => {
|
||||||
panic!("if condition ignored")
|
panic!("if condition ignored")
|
||||||
|
|||||||
Reference in New Issue
Block a user