Skip to content

Commit

Permalink
Merge pull request #6095 from CrepeGoat/patch-1
Browse files Browse the repository at this point in the history
Fixed `roc format --stdin --stdout` to format output
  • Loading branch information
Anton-4 authored Dec 1, 2023
2 parents a56d7ad + c5ad8da commit b4506a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,10 @@ fn main() -> io::Result<()> {
}
}
FormatMode::WriteToStdout => {
std::io::stdout().lock().write_all(src.as_bytes()).unwrap();
std::io::stdout()
.lock()
.write_all(formatted_src.as_bytes())
.unwrap();

0
}
Expand Down

0 comments on commit b4506a4

Please sign in to comment.