diff --git a/src/main.rs b/src/main.rs index e6b7e914e..46442693e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -92,11 +92,11 @@ macro_rules! print_output { ($($arg:tt)*) => { use std::io::Write; - let stderr = std::io::stdout(); + let stdout = std::io::stdout(); { - let mut handle = stderr.lock(); + let mut handle = stdout.lock(); // We can write on stdout, so we simply ignore the error and don't print // and stop with success. let res = handle.write_all(std::format!($($arg)*).as_bytes());