From c46fe82543d186d6ee73e114729abac17045b85a Mon Sep 17 00:00:00 2001 From: lashman Date: Mon, 21 Sep 2026 01:33:39 +0300 Subject: [PATCH] ignore send failures without tripping the copy lint --- src-tauri/src/encode.rs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src-tauri/src/encode.rs b/src-tauri/src/encode.rs index 53412ab..ce58d9b 100644 --- a/src-tauri/src/encode.rs +++ b/src-tauri/src/encode.rs @@ -461,7 +461,7 @@ fn two_pass_video( if let Some(ref t) = tx { // The receiver is gone only if the UI navigated away; the encode is // unaffected, so the send error is deliberately discarded. - drop(t.send(EncodeProgress { pass: 1, total_passes: 2, percent: 100.0 })); + t.send(EncodeProgress { pass: 1, total_passes: 2, percent: 100.0 }).ok(); } let mut pass2 = Command::new(ffmpeg); @@ -1272,11 +1272,13 @@ fn run_impl( if let Some(ref sender) = tx { // A dropped receiver means the frontend is gone; // the encode keeps running either way. - drop(sender.send(EncodeProgress { - pass, - total_passes, - percent, - })); + sender + .send(EncodeProgress { + pass, + total_passes, + percent, + }) + .ok(); } } // frame=, fps=, bitrate= and friends are not needed.