Skip to content

Commit 5a3ef4d

Browse files
committed
Fix unused_must_use warning
1 parent 6a69c0f commit 5a3ef4d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

futures-channel/tests/mpsc.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ fn send_recv_threads_no_capacity() {
101101
let (send_res_1, send_res_2) = block_on(join(tx.send(1), readytx.send(())));
102102
send_res_1.unwrap();
103103
send_res_2.unwrap();
104-
block_on(join(tx.send(2), readytx.send(())));
104+
block_on(join(tx.send(2), readytx.send(())))
105105
});
106106

107107
readyrx.next();
@@ -111,7 +111,9 @@ fn send_recv_threads_no_capacity() {
111111
assert_eq!(rx.next(), Some(2));
112112
drop(rx);
113113

114-
t.join().unwrap();
114+
let (x, y) = t.join().unwrap();
115+
assert!(x.is_ok());
116+
assert!(y.is_ok());
115117
}
116118

117119
#[test]

0 commit comments

Comments
 (0)