diff options
Diffstat (limited to 'mingling/src/program.rs')
| -rw-r--r-- | mingling/src/program.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/mingling/src/program.rs b/mingling/src/program.rs index 3394a38..9463084 100644 --- a/mingling/src/program.rs +++ b/mingling/src/program.rs @@ -65,16 +65,15 @@ where }; // Render result - if stdout_setting.render_output { - if !result.is_empty() { + if stdout_setting.render_output + && !result.is_empty() { print!("{}", result); if let Err(e) = tokio::io::stdout().flush().await && stdout_setting.error_output { - eprintln!("{}", e.to_string()); + eprintln!("{}", e); } } - } } } |
