mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-12-22 19:31:35 +00:00
clippy
This commit is contained in:
parent
f61dac8187
commit
15189d293b
3 changed files with 3 additions and 5 deletions
|
@ -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]);
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
)
|
||||
});
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue