From 2636cc912f15bca4b1d9118367d9921eb7716836 Mon Sep 17 00:00:00 2001 From: Xuejie Xiao Date: Thu, 25 Sep 2025 06:12:30 +0000 Subject: [PATCH 1/2] Install rustfmt & clippy explicitly in CI --- .github/workflows/rust.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index abad3de..74cb54a 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -18,6 +18,8 @@ jobs: - name: Install llvm run: sudo apt update && sudo apt install -y clang llvm clang-format lld - uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + components: rustfmt, clippy - name: Prepare, build, test, clippy, format run: make prepare build test clippy fmt - name: git diff @@ -45,5 +47,7 @@ jobs: - name: Install latest llvm & lld run: brew install llvm lld - uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + components: rustfmt, clippy - name: Prepare, build, test, clippy run: make prepare build test clippy From 545cf645f141ca263d2b1e9e5c28da48aca16357 Mon Sep 17 00:00:00 2001 From: Xuejie Xiao Date: Thu, 25 Sep 2025 07:15:58 +0000 Subject: [PATCH 2/2] Adjust clippy setting from cli --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2e3e197..bffd309 100644 --- a/Makefile +++ b/Makefile @@ -83,7 +83,7 @@ check: cargo check $(CARGO_ARGS) clippy: - cargo clippy $(CARGO_ARGS) + cargo clippy $(CARGO_ARGS) -- -A clippy::manual-is-multiple-of fmt: cargo fmt $(CARGO_ARGS)