Merge pull request #3646 from arlosi/fix-stdout

fix: Mixup between stderr and stdout introduced in v3.1.11
This commit is contained in:
Ed Page 2022-04-22 06:51:22 -05:00 committed by GitHub
commit 61514bf6d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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();