Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down