Skip to content

Commit

Permalink
Switch clippy from +nightly to $RUST_STABLE_VERSION (#489)
Browse files Browse the repository at this point in the history
Relates to: paritytech/polkadot-sdk#6127

- [X] Does not require a CHANGELOG entry
  • Loading branch information
bkontur authored Oct 21, 2024
1 parent 91a4498 commit 7bbf005
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,19 @@ 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
with:
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
1 change: 0 additions & 1 deletion relay/kusama/src/governance/origins.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down
1 change: 0 additions & 1 deletion relay/polkadot/src/governance/origins.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

//! The Ambassador Program's origins.
#[allow(unreachable_patterns)]
#[frame_support::pallet]
pub mod pallet_origins {
use crate::ambassador::ranks;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
use super::ranks;
pub use pallet_origins::*;

#[allow(unreachable_patterns)]
#[frame_support::pallet]
pub mod pallet_origins {
use super::ranks;
Expand Down

0 comments on commit 7bbf005

Please sign in to comment.