Skip to content

Commit

Permalink
Adjust lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ChillFish8 committed Aug 4, 2024
1 parent 3fc1698 commit 3f24e93
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,32 +13,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
profile: minimal
components: rustfmt
override: true
- name: Rustfmt Check
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
run: cargo +nightly fmt --all -- --check

clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
profile: minimal
components: clippy
override: true
- name: Clippy Check
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: -p cfavml --all-features --tests --examples --bins -- -Dclippy::todo
run: cargo +nightly clippy -p cfavml --all-features --tests --examples --bins -- -Dclippy::todo

0 comments on commit 3f24e93

Please sign in to comment.