clippy
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
asonix 2023-11-09 18:26:57 -06:00
parent f61dac8187
commit 15189d293b
3 changed files with 3 additions and 5 deletions

View file

@ -136,7 +136,7 @@ where
if input_format.coalesce() {
args.push("-coalesce".as_ref());
}
args.extend(process_args.iter().map(|s| AsRef::<OsStr>::as_ref(s)));
args.extend(process_args.iter().map(AsRef::<OsStr>::as_ref));
if let Some(quality) = &quality {
args.extend(["-quality".as_ref(), quality.as_ref()] as [&OsStr; 2]);
}

View file

@ -128,9 +128,7 @@ impl Process {
let res = tracing::trace_span!(parent: None, "Create command", %command).in_scope(|| {
Self::spawn(
command,
Command::new(command)
.args(args)
.envs(envs.into_iter().copied()),
Command::new(command).args(args).envs(envs.iter().copied()),
timeout,
)
});

View file

@ -92,7 +92,7 @@ async fn transcode_files(
"-c:v".as_ref(),
output_format.ffmpeg_video_codec().as_ref(),
"-crf".as_ref(),
&crf.as_ref(),
crf.as_ref(),
] as [&OsStr; 8]);
if output_format.is_vp9() {