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 bea56af
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 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,12 +36,7 @@ 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:
rustfmt_and_clippy:
name: Rustfmt
runs-on: ubuntu-latest
steps:
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 bea56af

Please sign in to comment.