From 35099aa0c24ce57518068c1f4b176feec8c6ffd7 Mon Sep 17 00:00:00 2001 From: Nick Santana Date: Wed, 11 Oct 2023 12:42:26 -0700 Subject: [PATCH] Fix clippy beta CI run --- .github/workflows/ci.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ee0d30a5..732ad5d4 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -70,12 +70,19 @@ jobs: - uses: mobilecoinfoundation/actions/dcap-libs@main with: version: 1.16.100.2-jammy1 + - id: suppression + run: | + if [ "${{ matrix.rust }}" == "stable" ]; then + echo "suppression=-Aclippy::incorrect_clone_impl_on_copy_type" >> "$GITHUB_OUTPUT" + elif [ "${{ matrix.rust }}" == "beta" ]; then + echo "suppression=-Aclippy::non_canonical_clone_impl" >> "$GITHUB_OUTPUT" + fi - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.rust }} components: clippy - uses: r7kamura/rust-problem-matchers@v1 - - run: cargo +${{ matrix.rust }} clippy --all --all-features -- -D warnings -Aclippy::incorrect_clone_impl_on_copy_type + - run: cargo +${{ matrix.rust }} clippy --all --all-features -- -D warnings ${{ steps.suppression.outputs.suppression }} build: runs-on: ubuntu-22.04