Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
kornelski committed Oct 3, 2023
1 parent da45520 commit 3aecd94
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/api/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ fn send_test_frame<T: Pixel>(ctx: &mut Context<T>, content_value: T) {
fn get_frame_invariants<T: Pixel>(
ctx: Context<T>,
) -> impl Iterator<Item = Option<FrameInvariants<T>>> {
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)]
Expand Down
2 changes: 1 addition & 1 deletion src/bin/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ fn build_speed_long_help() -> Option<&'static str> {
)
});

Some(&help)
Some(help)
}

#[cfg(not(feature = "serialize"))]
Expand Down
4 changes: 2 additions & 2 deletions src/encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1354,8 +1354,8 @@ fn write_key_frame_obus<T: Pixel>(
}

/// Write into `dst` the difference between the blocks at `src1` and `src2`
fn diff<'a, T: Pixel>(
dst: &'a mut [MaybeUninit<i16>], src1: &PlaneRegion<'_, T>,
fn diff<T: Pixel>(
dst: &mut [MaybeUninit<i16>], src1: &PlaneRegion<'_, T>,
src2: &PlaneRegion<'_, T>,
) {
debug_assert!(dst.len() % src1.rect().width == 0);
Expand Down
10 changes: 5 additions & 5 deletions tests/binary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ mod binary {
use std::path::{Path, PathBuf};

fn get_y4m_input() -> Vec<u8> {
let mut input = File::open(&format!(
let mut input = File::open(format!(
"{}/tests/small_input.y4m",
env!("CARGO_MANIFEST_DIR")
))
Expand Down Expand Up @@ -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
}

Expand All @@ -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("-")
Expand Down Expand Up @@ -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("-")
Expand All @@ -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("-")
Expand Down

0 comments on commit 3aecd94

Please sign in to comment.