mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Fixed roc format --stdin --stdout
to format output
fixes #6088 Signed-off-by: Becker A. <awqatty.b@gmail.com>
This commit is contained in:
parent
69b72866db
commit
714404b081
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue