mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-11 10:55:31 +03:00
Merge pull request #6095 from CrepeGoat/patch-1
Fixed `roc format --stdin --stdout` to format output
This commit is contained in:
commit
b4506a4dac
@ -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…
Reference in New Issue
Block a user