diff --git a/.github/workflows/clippy.yml b/.github/workflows/clippy.yml index 2aadfd20d8..a5dc42a6eb 100644 --- a/.github/workflows/clippy.yml +++ b/.github/workflows/clippy.yml @@ -25,8 +25,11 @@ jobs: - name: Set rust version via common env file run: cat .github/env >> $GITHUB_ENV - - name: Install nightly toolchain - run: rustup toolchain install "nightly-$RUST_NIGHTLY_VERSION" --profile minimal --component clippy + - name: Install stable toolchain + run: | + rustup toolchain install $RUST_STABLE_VERSION --profile minimal --component clippy + cargo --version + cargo clippy --version - name: Fetch cache uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2.7.0 @@ -34,7 +37,7 @@ jobs: shared-key: "fellowship-cache-clippy" - name: Clippy - run: cargo +nightly-$RUST_NIGHTLY_VERSION clippy --all-targets --locked -q + run: cargo clippy --all-targets --locked -q env: RUSTFLAGS: "-D warnings" SKIP_WASM_BUILD: 1 diff --git a/relay/kusama/src/governance/origins.rs b/relay/kusama/src/governance/origins.rs index a8ef1bc86c..24dcf17801 100644 --- a/relay/kusama/src/governance/origins.rs +++ b/relay/kusama/src/governance/origins.rs @@ -18,7 +18,6 @@ pub use pallet_custom_origins::*; -#[allow(unreachable_patterns)] #[frame_support::pallet] pub mod pallet_custom_origins { use crate::{Balance, GRAND, QUID}; diff --git a/relay/polkadot/src/governance/origins.rs b/relay/polkadot/src/governance/origins.rs index b71466c208..f1283b551e 100644 --- a/relay/polkadot/src/governance/origins.rs +++ b/relay/polkadot/src/governance/origins.rs @@ -18,7 +18,6 @@ pub use pallet_custom_origins::*; -#[allow(unreachable_patterns)] #[frame_support::pallet] pub mod pallet_custom_origins { use crate::{Balance, DOLLARS, GRAND}; diff --git a/system-parachains/collectives/collectives-polkadot/src/ambassador/origins.rs b/system-parachains/collectives/collectives-polkadot/src/ambassador/origins.rs index adb076fc8a..691fd10f24 100644 --- a/system-parachains/collectives/collectives-polkadot/src/ambassador/origins.rs +++ b/system-parachains/collectives/collectives-polkadot/src/ambassador/origins.rs @@ -15,7 +15,6 @@ //! The Ambassador Program's origins. -#[allow(unreachable_patterns)] #[frame_support::pallet] pub mod pallet_origins { use crate::ambassador::ranks; diff --git a/system-parachains/collectives/collectives-polkadot/src/fellowship/origins.rs b/system-parachains/collectives/collectives-polkadot/src/fellowship/origins.rs index 10213635c7..b6815e673f 100644 --- a/system-parachains/collectives/collectives-polkadot/src/fellowship/origins.rs +++ b/system-parachains/collectives/collectives-polkadot/src/fellowship/origins.rs @@ -19,7 +19,6 @@ use super::ranks; pub use pallet_origins::*; -#[allow(unreachable_patterns)] #[frame_support::pallet] pub mod pallet_origins { use super::ranks;