diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-03-29 15:00:09 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-03-29 15:00:09 +0800 |
| commit | 586c206e50bb8e9a1376f65975f1c9916b1cde7e (patch) | |
| tree | 7d416ad11b65ab27d3dbf056dfccc1c1cfcde4c4 /mingling/src/program.rs | |
| parent | 338361a8fca469745454e0f067c93739542d4ff0 (diff) | |
Apply clippy fixes
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); } } - } } } |
