diff --git a/src/api/test.rs b/src/api/test.rs index 0a698ba4d5..a0a15e3406 100644 --- a/src/api/test.rs +++ b/src/api/test.rs @@ -278,7 +278,7 @@ fn send_test_frame(ctx: &mut Context, content_value: T) { fn get_frame_invariants( ctx: Context, ) -> impl Iterator>> { - ctx.inner.frame_data.into_iter().map(|(_, v)| v.map(|v| v.fi)) + ctx.inner.frame_data.into_values().map(|v| v.map(|v| v.fi)) } #[interpolate_test(0, 0)] diff --git a/src/asm/shared/transform/inverse.rs b/src/asm/shared/transform/inverse.rs index d459398d67..b7ad108c64 100644 --- a/src/asm/shared/transform/inverse.rs +++ b/src/asm/shared/transform/inverse.rs @@ -145,7 +145,7 @@ pub mod test { for sub_h in 0..sub_h_iterations { let mut src_storage = [T::zero(); 64 * 64]; let src = &mut src_storage[..tx_size.area()]; - let mut dst = Plane::from_slice(&vec![T::zero(); 64 * 64], 64); + let mut dst = Plane::from_slice(&[T::zero(); 64 * 64], 64); // SAFETY: We write to the array below before reading from it. let mut res_storage: Aligned<[i16; 64 * 64]> = unsafe { Aligned::uninitialized() }; diff --git a/src/me.rs b/src/me.rs index 20fa201cbe..37bf319535 100644 --- a/src/me.rs +++ b/src/me.rs @@ -820,7 +820,6 @@ fn full_pixel_me( } { - let ssdec = ssdec; let range_x = (192 * fi.me_range_scale as isize) >> ssdec; let range_y = (64 * fi.me_range_scale as isize) >> ssdec; let x_lo = po.x + (-range_x).max(mvx_min / 8); diff --git a/tests/binary.rs b/tests/binary.rs index beb8216d1a..a1cff3f6cc 100644 --- a/tests/binary.rs +++ b/tests/binary.rs @@ -9,7 +9,7 @@ mod binary { use std::path::{Path, PathBuf}; fn get_y4m_input() -> Vec { - let mut input = File::open(&format!( + let mut input = File::open(format!( "{}/tests/small_input.y4m", env!("CARGO_MANIFEST_DIR") )) @@ -45,7 +45,7 @@ mod binary { fn get_common_cmd(outfile: &Path) -> Command { let mut cmd = get_rav1e_command(); - cmd.args(&["--bitrate", "1000"]).arg("-o").arg(outfile).arg("-y"); + cmd.args(["--bitrate", "1000"]).arg("-o").arg(outfile).arg("-y"); cmd } @@ -54,7 +54,7 @@ mod binary { let outfile = get_tempfile_path("ivf"); get_rav1e_command() - .args(&["--quantizer", "100"]) + .args(["--quantizer", "100"]) .arg("-o") .arg(&outfile) .arg("-") @@ -101,7 +101,7 @@ mod binary { let passfile = get_tempfile_path("pass"); get_common_cmd(&outfile) - .args(&["--reservoir-frame-delay", "14"]) + .args(["--reservoir-frame-delay", "14"]) .arg("--first-pass") .arg(&passfile) .arg("-") @@ -110,7 +110,7 @@ mod binary { .success(); get_common_cmd(&outfile) - .args(&["--reservoir-frame-delay", "14"]) + .args(["--reservoir-frame-delay", "14"]) .arg("--second-pass") .arg(&passfile) .arg("-")