Don't pass AsRef<T> params by reference (#84)

This commit is contained in:
FreezyLemon
2024-11-05 03:07:01 +01:00
committed by GitHub
parent 5834596af4
commit 979e287286
6 changed files with 14 additions and 20 deletions

View File

@ -5,7 +5,7 @@ use std::env;
fn main() {
ffmpeg::init().unwrap();
match ffmpeg::format::input(&env::args().nth(1).expect("missing input file name")) {
match ffmpeg::format::input(env::args().nth(1).expect("missing input file name")) {
Ok(ictx) => {
println!("Nb chapters: {}", ictx.nb_chapters());
@ -20,7 +20,7 @@ fn main() {
}
}
let mut octx = ffmpeg::format::output(&"test.mkv").expect("Couldn't open test file");
let mut octx = ffmpeg::format::output("test.mkv").expect("Couldn't open test file");
for chapter in ictx.chapters() {
let title = match chapter.metadata().get("title") {