Skip to content

Commit 6a0724c

Browse files
committed
Simplify loop with while let
1 parent 6bc3db5 commit 6a0724c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

compiler/base/orchestrator/src/worker.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -671,10 +671,7 @@ fn stream_stdio(
671671
let mut set = JoinSet::new();
672672

673673
set.spawn(async move {
674-
loop {
675-
let Some(data) = stdin_rx.recv().await else {
676-
break;
677-
};
674+
while let Some(data) = stdin_rx.recv().await {
678675
stdin
679676
.write_all(data.as_bytes())
680677
.await

0 commit comments

Comments
 (0)