We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b3f26f commit c088820Copy full SHA for c088820
src/fmt/writer/mod.rs
@@ -69,17 +69,20 @@ impl WritableTarget {
69
WritableTarget::WriteStdout => {
70
let mut stream = std::io::stdout().lock();
71
stream.write_all(buf)?;
72
+ stream.flush()?;
73
}
74
WritableTarget::PrintStdout => print!("{}", String::from_utf8_lossy(buf)),
75
WritableTarget::WriteStderr => {
76
let mut stream = std::io::stderr().lock();
77
78
79
80
WritableTarget::PrintStderr => eprint!("{}", String::from_utf8_lossy(buf)),
81
// Safety: If the target type is `Pipe`, `target_pipe` will always be non-empty.
82
WritableTarget::Pipe(pipe) => {
83
let mut stream = pipe.lock().unwrap();
84
85
86
87
88
0 commit comments