Skip to content

Commit a5f4934

Browse files
authored
Fix new let_unit_value clippy lint (#2598)
1 parent 2e30ec3 commit a5f4934

File tree

1 file changed

+9
-9
lines changed
  • futures/tests/macro-tests/src

1 file changed

+9
-9
lines changed

futures/tests/macro-tests/src/main.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ fn main() {
44
use futures04::{executor::block_on, future};
55

66
// join! macro
7-
let _ = block_on(async {
7+
block_on(async {
88
let _ = futures04::join!(async {}, async {});
99
let _ = macro_reexport::join!(async {}, async {});
1010
let _ = macro_reexport::join2!(async {}, async {});
@@ -19,48 +19,48 @@ fn main() {
1919
});
2020

2121
// select! macro
22-
let _ = block_on(async {
22+
block_on(async {
2323
let mut a = future::ready(());
2424
let mut b = future::pending::<()>();
25-
let _ = futures04::select! {
25+
futures04::select! {
2626
_ = a => {},
2727
_ = b => unreachable!(),
2828
};
2929

3030
let mut a = future::ready(());
3131
let mut b = future::pending::<()>();
32-
let _ = macro_reexport::select! {
32+
macro_reexport::select! {
3333
_ = a => {},
3434
_ = b => unreachable!(),
3535
};
3636

3737
let mut a = future::ready(());
3838
let mut b = future::pending::<()>();
39-
let _ = macro_reexport::select2! {
39+
macro_reexport::select2! {
4040
_ = a => {},
4141
_ = b => unreachable!(),
4242
};
4343
});
4444

4545
// select_biased! macro
46-
let _ = block_on(async {
46+
block_on(async {
4747
let mut a = future::ready(());
4848
let mut b = future::pending::<()>();
49-
let _ = futures04::select_biased! {
49+
futures04::select_biased! {
5050
_ = a => {},
5151
_ = b => unreachable!(),
5252
};
5353

5454
let mut a = future::ready(());
5555
let mut b = future::pending::<()>();
56-
let _ = macro_reexport::select_biased! {
56+
macro_reexport::select_biased! {
5757
_ = a => {},
5858
_ = b => unreachable!(),
5959
};
6060

6161
let mut a = future::ready(());
6262
let mut b = future::pending::<()>();
63-
let _ = macro_reexport::select_biased2! {
63+
macro_reexport::select_biased2! {
6464
_ = a => {},
6565
_ = b => unreachable!(),
6666
};

0 commit comments

Comments
 (0)