Skip to content

Commit

Permalink
Fixed roc format --stdin --stdout to format output
Browse files Browse the repository at this point in the history
fixes #6088 

Signed-off-by: Becker A. <[email protected]>
  • Loading branch information
CrepeGoat authored Nov 26, 2023
1 parent 69b7286 commit 714404b
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 714404b

Please sign in to comment.