Skip to content

Commit

Permalink
fix: revert \r\n conversion, defer to frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
jiegec committed Jun 19, 2024
1 parent 86202b4 commit e705a76
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions worker/src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@ async fn get_output_logged(

let mut stdout_out = vec![];
while let Ok(Some(v)) = stdout_reader.next_line().await {
tx.clone()
.into_send_async(Message::Text(v.replace("\r\n", "\n").replace("\r", "\n")))
.await?;
tx.clone().into_send_async(Message::Text(v.clone())).await?;
stdout_out.push(v);
}

Expand Down

0 comments on commit e705a76

Please sign in to comment.