Merge pull request #6095 from CrepeGoat/patch-1

Fixed `roc format --stdin --stdout` to format output
This commit is contained in:
Anton-4 2023-12-01 15:27:05 +01:00 committed by GitHub
commit b4506a4dac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}