Skip to content

Commit

Permalink
Fix new let_unit_value clippy lint (#2598)
Browse files Browse the repository at this point in the history
  • Loading branch information
414owen committed May 10, 2022
1 parent 2e30ec3 commit a5f4934
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions futures/tests/macro-tests/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ fn main() {
use futures04::{executor::block_on, future};

// join! macro
let _ = block_on(async {
block_on(async {
let _ = futures04::join!(async {}, async {});
let _ = macro_reexport::join!(async {}, async {});
let _ = macro_reexport::join2!(async {}, async {});
Expand All @@ -19,48 +19,48 @@ fn main() {
});

// select! macro
let _ = block_on(async {
block_on(async {
let mut a = future::ready(());
let mut b = future::pending::<()>();
let _ = futures04::select! {
futures04::select! {
_ = a => {},
_ = b => unreachable!(),
};

let mut a = future::ready(());
let mut b = future::pending::<()>();
let _ = macro_reexport::select! {
macro_reexport::select! {
_ = a => {},
_ = b => unreachable!(),
};

let mut a = future::ready(());
let mut b = future::pending::<()>();
let _ = macro_reexport::select2! {
macro_reexport::select2! {
_ = a => {},
_ = b => unreachable!(),
};
});

// select_biased! macro
let _ = block_on(async {
block_on(async {
let mut a = future::ready(());
let mut b = future::pending::<()>();
let _ = futures04::select_biased! {
futures04::select_biased! {
_ = a => {},
_ = b => unreachable!(),
};

let mut a = future::ready(());
let mut b = future::pending::<()>();
let _ = macro_reexport::select_biased! {
macro_reexport::select_biased! {
_ = a => {},
_ = b => unreachable!(),
};

let mut a = future::ready(());
let mut b = future::pending::<()>();
let _ = macro_reexport::select_biased2! {
macro_reexport::select_biased2! {
_ = a => {},
_ = b => unreachable!(),
};
Expand Down

0 comments on commit a5f4934

Please sign in to comment.