mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-01 00:09:18 +00:00
fix: keep TODO comment for learner guidance
This commit is contained in:
parent
0efc3c5b06
commit
2cab96be52
@ -15,6 +15,9 @@ impl Queue {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn send_tx(q: Queue, tx: mpsc::Sender<u32>) {
|
fn send_tx(q: Queue, tx: mpsc::Sender<u32>) {
|
||||||
|
// TODO: We want to send `tx` to both threads. But currently, it is moved
|
||||||
|
// into the first thread. How could you solve this problem?
|
||||||
|
|
||||||
// Destructure the Queue to move first_half and second_half independently
|
// Destructure the Queue to move first_half and second_half independently
|
||||||
let Queue {
|
let Queue {
|
||||||
first_half,
|
first_half,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user