Fixed roc format --stdin --stdout to format output

fixes #6088 

Signed-off-by: Becker A. <awqatty.b@gmail.com>
This commit is contained in:
Becker A 2023-11-26 01:14:46 -07:00 committed by GitHub
parent 69b72866db
commit 714404b081
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
}