Skip to content

Commit

Permalink
Run clippy with rust nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
heeckhau committed Aug 17, 2023
1 parent 30b001d commit b149f22
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: clippy

- uses: Swatinem/rust-cache@v2.5.0

Expand All @@ -37,13 +36,8 @@ jobs:
# RUSTDOCFLAGS: -D warnings
run: cargo doc --no-deps --workspace --lib --document-private-items --examples

- name: Run Clippy
# env:
# RUSTDOCFLAGS: -D warnings
run: cargo clippy --all-targets --all-features

rustfmt:
name: Rustfmt
rustfmt_and_clippy:
name: Rustfmt and Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -52,7 +46,10 @@ jobs:
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
components: rustfmt
components: rustfmt, clippy

- name: "Check formatting"
run: cargo +nightly fmt --check --all
run: cargo +nightly fmt --check --all

- name: Run Clippy
run: cargo clippy --all-targets --all-features

0 comments on commit b149f22

Please sign in to comment.