From 7d0430167a73cb2d3cf141c45914eeca5f51a391 Mon Sep 17 00:00:00 2001 From: Raghav <83136390+Raghav-Bell@users.noreply.github.com> Date: Sat, 19 Aug 2023 00:33:00 +0530 Subject: [PATCH] Improved lint.yml Cargo includes both clippy & rustfmt hence can be tested using cargo command . --- .github/workflows/lint.yml | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3e4c7ca..6097457 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -28,17 +28,7 @@ jobs: # Installing Rust - name: Set up Rust uses: dtolnay/rust-toolchain@stable - - - - # Install your linters here - - name: Installing clippy - run: rustup component add clippy - - name: Installing clippy - run: rustup component add rustfmt - - - name: Run linters - uses: wearerequired/lint-action@v2 - with: - clippy: true - rustfmt: true + - name: Lint (clippy) + run: cargo clippy --all-targets -- -D warnings + - name: Format (rustfmt) + run: cargo fmt --all -- --check