From 586c206e50bb8e9a1376f65975f1c9916b1cde7e Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sun, 29 Mar 2026 15:00:09 +0800 Subject: Apply clippy fixes --- mingling/src/program.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'mingling/src/program.rs') 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); } } - } } } -- cgit