take command arguments by value on purpose
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user