Skip to content

Commit

Permalink
run clippy::pedantic with stable, too
Browse files Browse the repository at this point in the history
  • Loading branch information
elmarx committed Oct 19, 2023
1 parent 010a7b4 commit 2afabd0
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,30 +44,6 @@ jobs:
- name: linter
run: cargo clippy -- -D warnings

pedantic:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: install clippy nightly
run: rustup toolchain install nightly --component clippy

- name: get rust nightly version
id: rust_nightly
run: echo ::set-output name=version::$(rustup run nightly rustc --version)

- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-${{ steps.rust_nightly.outputs.version }}
restore-keys: |
${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-
${{ runner.os }}-cargo-
- name: run the pedantic linter (warnings only)
run: cargo +nightly clippy --color=always --all-targets -- -W clippy::pedantic

Expand Down

0 comments on commit 2afabd0

Please sign in to comment.