diff --git a/.github/workflows/rust_lint.yml b/.github/workflows/rust_lint.yml index 3340857f..e792fe1c 100644 --- a/.github/workflows/rust_lint.yml +++ b/.github/workflows/rust_lint.yml @@ -22,10 +22,14 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - run: rustup toolchain install stable --component clippy - - name: Install cross - run: cargo install cross - - run: cross clippy --all-features -- -D warnings + - uses: dtolnay/rust-toolchain@stable + with: + components: clippy + - uses: giraffate/clippy-action@v1 + with: + reporter: 'github-pr-review' + github_token: ${{ secrets.GITHUB_TOKEN }} + clippy_flags: -- -D warnings check: name: Check