ci: Pin rust nightly for clippy

To work around lint issue with clap
This commit is contained in:
Kévin Commaille 2023-02-27 19:17:09 +01:00 committed by Kévin Commaille
parent e490c8893d
commit a435a83cdd
2 changed files with 9 additions and 3 deletions

View File

@ -50,7 +50,9 @@ jobs:
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
profile: minimal profile: minimal
toolchain: nightly # FIXME: Remove pinning when clippy lint with clap issue is solved
# See https://github.com/clap-rs/clap/issues/4733
toolchain: nightly-2023-02-25
override: true override: true
- uses: Swatinem/rust-cache@v1 - uses: Swatinem/rust-cache@v1
@ -208,7 +210,9 @@ jobs:
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
profile: minimal profile: minimal
toolchain: nightly # FIXME: Remove pinning when clippy lint with clap issue is solved
# See https://github.com/clap-rs/clap/issues/4733
toolchain: nightly-2023-02-25
override: true override: true
components: ${{ matrix.components }} components: ${{ matrix.components }}

View File

@ -10,7 +10,9 @@ mod spec_links;
use spec_links::check_spec_links; use spec_links::check_spec_links;
const MSRV: &str = "1.64"; const MSRV: &str = "1.64";
const NIGHTLY: &str = "nightly"; // FIXME: Remove pinning when clippy lint with clap issue is solved
// See https://github.com/clap-rs/clap/issues/4733
const NIGHTLY: &str = "nightly-2023-02-25";
#[derive(Args)] #[derive(Args)]
pub struct CiArgs { pub struct CiArgs {