diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 09870c6..0063e62 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -8,27 +8,24 @@ on: branches: - master +env: + CARGO_INCREMENTAL: 0 + RUSTFLAGS: "-Dwarnings" + jobs: clippy-rustfmt: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v6 - name: Install stable - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: - profile: minimal - toolchain: stable - override: true components: clippy, rustfmt - - name: Run rustfmt - uses: actions-rs/cargo@v1 - with: - command: fmt - args: -- --check --verbose + - name: Check format + run: cargo fmt --check - name: Install ffmpeg for Ubuntu run: | @@ -37,34 +34,24 @@ jobs: sudo apt-get install libavutil-dev libavcodec-dev libavformat-dev libclang-dev - name: Run cargo clippy (y4m) - uses: actions-rs/clippy-check@v1 - with: - token: ${{ secrets.GITHUB_TOKEN }} - args: --all-targets --tests --benches -- -D warnings + run: cargo clippy --all-targets - name: Run cargo clippy (ffmpeg) - uses: actions-rs/clippy-check@v1 - with: - token: ${{ secrets.GITHUB_TOKEN }} - args: --all-targets --features ffmpeg --tests --benches -- -D warnings + run: cargo clippy --all-targets --features ffmpeg build: - strategy: + fail-fast: false matrix: platform: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.platform }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v6 - name: Install stable - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true + uses: dtolnay/rust-toolchain@stable - name: Install FFmpeg for Ubuntu if: matrix.platform == 'ubuntu-latest' diff --git a/av_metrics/src/video/ciede/mod.rs b/av_metrics/src/video/ciede/mod.rs index f021df6..af35989 100644 --- a/av_metrics/src/video/ciede/mod.rs +++ b/av_metrics/src/video/ciede/mod.rs @@ -182,10 +182,10 @@ pub(crate) struct FrameRow<'a, T: Pixel> { type DeltaERowFn = unsafe fn(FrameRow, FrameRow, &mut [f32]); -fn get_delta_e_row_fn(bit_depth: usize, xdec: usize, simd: bool) -> DeltaERowFn { +fn get_delta_e_row_fn(bit_depth: usize, xdec: usize, _simd: bool) -> DeltaERowFn { #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] { - if is_x86_feature_detected!("avx2") && xdec == 1 && simd { + if is_x86_feature_detected!("avx2") && xdec == 1 && _simd { return match bit_depth { 8 => BD8::delta_e_row_avx2, 10 => BD10::delta_e_row_avx2,