Skip to content

Commit

Permalink
Switch to clippy nightly
Browse files Browse the repository at this point in the history
Should be reverted once rust-lang/rust-clippy#10502
is released in a stable `clippy`.
  • Loading branch information
soenkehahn committed Apr 22, 2023
1 parent ba16002 commit 3da65ee
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/ci.yaml
Expand Up @@ -49,17 +49,25 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Install Rust Toolchain Components
- name: Install rustfmt
uses: actions-rs/toolchain@v1
with:
components: clippy, rustfmt
components: rustfmt
override: true
toolchain: stable

- name: Install clippy nightly
uses: actions-rs/toolchain@v1
with:
components: clippy
toolchain: nightly

- uses: Swatinem/rust-cache@v2
with:
key: "clippy-nightly"

- name: Clippy
run: cargo clippy --all --all-targets
run: cargo +nightly clippy --all --all-targets

- name: Format
run: cargo fmt --all -- --check
Expand Down
4 changes: 2 additions & 2 deletions justfile
Expand Up @@ -15,10 +15,10 @@ fmt:
cargo fmt

clippy:
cargo clippy --all --all-targets -- -D warnings
cargo +nightly clippy --all --all-targets -- -D warnings

lclippy:
cargo lclippy --all --all-targets -- -D warnings
cargo +nightly lclippy --all --all-targets -- -D warnings

deploy branch chain domain:
ssh root@{{domain}} "mkdir -p deploy \
Expand Down

0 comments on commit 3da65ee

Please sign in to comment.