take command arguments by value on purpose

This commit is contained in:
2026-09-21 01:25:35 +03:00
parent 5003b461fc
commit b2dd93fb09
3 changed files with 23 additions and 0 deletions
+6
View File
@@ -1184,6 +1184,12 @@ fn ffmpeg_failure_message(label: &str, status: std::process::ExitStatus, stderr:
}
}
// Consumes the progress sender and the cancel flag: both are moved into the
// reader threads this spawns, so borrowing them here would not typecheck.
#[allow(
clippy::needless_pass_by_value,
reason = "progress_tx and cancel are moved into the threads spawned below"
)]
fn run_impl(
cmd: &mut Command,
label: &str,