diff --git a/src/magick.rs b/src/magick.rs index bb58315..3f32d76 100644 --- a/src/magick.rs +++ b/src/magick.rs @@ -136,7 +136,7 @@ where if input_format.coalesce() { args.push("-coalesce".as_ref()); } - args.extend(process_args.iter().map(|s| AsRef::::as_ref(s))); + args.extend(process_args.iter().map(AsRef::::as_ref)); if let Some(quality) = &quality { args.extend(["-quality".as_ref(), quality.as_ref()] as [&OsStr; 2]); } diff --git a/src/process.rs b/src/process.rs index 138a3a8..29bf910 100644 --- a/src/process.rs +++ b/src/process.rs @@ -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, ) }); diff --git a/src/validate/ffmpeg.rs b/src/validate/ffmpeg.rs index b093aa1..2034e8a 100644 --- a/src/validate/ffmpeg.rs +++ b/src/validate/ffmpeg.rs @@ -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() {