Skip to content

Commit 0a0b2d5

Browse files
committed
Get tests passing on 1.15
1 parent 99416a6 commit 0a0b2d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/mpsc-close.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ fn stress_try_send_as_receiver_closes() {
5555
let (command_tx, command_rx) = channel::<TestRx>(0);
5656
(
5757
TestTask {
58-
command_rx,
58+
command_rx: command_rx,
5959
test_rx: None,
6060
countdown: 0, // 0 means no countdown is in progress.
6161
},
@@ -98,7 +98,7 @@ fn stress_try_send_as_receiver_closes() {
9898
for i in 0..AMT {
9999
let (mut test_tx, rx) = channel(0);
100100
let poll_count = i % MAX_COUNTDOWN;
101-
cmd_tx.try_send(TestRx { rx, poll_count }).unwrap();
101+
cmd_tx.try_send(TestRx { rx: rx, poll_count: poll_count }).unwrap();
102102
let mut prev_weak: Option<Weak<()>> = None;
103103
let mut attempted_sends = 0;
104104
let mut successful_sends = 0;

0 commit comments

Comments
 (0)