Skip to content

Commit 29282b4

Browse files
committed
writeln macro
1 parent 36cb7e0 commit 29282b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,13 @@ fn run() -> Result<(), Box<dyn Error>> {
118118
#[cfg(debug_assertions)]
119119
{
120120
if std::env::var_os("ERDTREE_DEBUG").is_none() {
121-
let _ = stdout().write(output.as_bytes());
121+
let _ = writeln!(stdout(), "{output}");
122122
}
123123
}
124124

125125
#[cfg(not(debug_assertions))]
126126
{
127-
let _ = stdout().write(output.as_bytes());
127+
let _ = writeln!(stdout(), "{output}");
128128
}
129129

130130
Ok(())

0 commit comments

Comments
 (0)