From 854017b4784bff4b73cf46016e63357c2c18b8cc Mon Sep 17 00:00:00 2001 From: Arlo Siemsen Date: Fri, 22 Apr 2022 01:21:22 -0500 Subject: [PATCH] fix: Mixup between stderr and stdout introduced in v3.1.11 --- src/output/fmt.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/output/fmt.rs b/src/output/fmt.rs index 85ba1774..dc1f46e0 100644 --- a/src/output/fmt.rs +++ b/src/output/fmt.rs @@ -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();