fix: Mixup between stderr and stdout introduced in v3.1.11

This commit is contained in:
Arlo Siemsen 2022-04-22 01:21:22 -05:00
parent a46ee83224
commit 854017b478

View file

@ -69,8 +69,8 @@ impl Colorizer {
};
let writer = match self.stream {
Stream::Stdout => BufferWriter::stderr(color_when),
Stream::Stderr => BufferWriter::stdout(color_when),
Stream::Stderr => BufferWriter::stderr(color_when),
Stream::Stdout => BufferWriter::stdout(color_when),
};
let mut buffer = writer.buffer();