Skip to content

Commit

Permalink
writeln macro
Browse files Browse the repository at this point in the history
  • Loading branch information
solidiquis committed Jul 4, 2023
1 parent 36cb7e0 commit 29282b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,13 @@ fn run() -> Result<(), Box<dyn Error>> {
#[cfg(debug_assertions)]
{
if std::env::var_os("ERDTREE_DEBUG").is_none() {
let _ = stdout().write(output.as_bytes());
let _ = writeln!(stdout(), "{output}");
}
}

#[cfg(not(debug_assertions))]
{
let _ = stdout().write(output.as_bytes());
let _ = writeln!(stdout(), "{output}");
}

Ok(())
Expand Down

0 comments on commit 29282b4

Please sign in to comment.