From 91b2e1164f59a5cf7ac0240a4e7c266618d69586 Mon Sep 17 00:00:00 2001 From: "Dustin J. Mitchell" Date: Sun, 5 Sep 2021 21:57:34 +0000 Subject: [PATCH] run clippy on the MSRV --- .github/workflows/checks.yml | 7 +++++++ .github/workflows/tests.yml | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index dc11d46a8..3c96dafb7 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -27,6 +27,13 @@ jobs: path: target key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} + - uses: actions-rs/toolchain@v1 + with: + # Fixed version for clippy lints. Bump this as necesary. It must not + # be older than the MSRV in tests.yml. + toolchain: "1.54" + override: true + - uses: actions-rs/cargo@v1.0.1 with: command: check diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6baef4519..78a0e183e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -12,7 +12,8 @@ jobs: strategy: matrix: rust: - - "1.47" # MSRV + # MSRV; most not be higher than the clippy rust version in checks.yml + - "1.47" - "stable" os: - ubuntu-latest