Skip to content

Commit 94a0ea6

Browse files
committed
chore: enhance CI workflow for rust 🚀
- Prevent clippy warnings by denying them - Check for formatting issues with cargo fmt
1 parent 1f3bef5 commit 94a0ea6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/rust.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# File Created: 2025-03-05 11:10:40
1010
#
1111
# Modified By: mingcheng ([email protected])
12-
# Last Modified: 2025-03-05 11:12:03
12+
# Last Modified: 2025-03-05 11:34:07
1313
##
1414

1515
name: Cargo Build & Test
@@ -34,6 +34,7 @@ jobs:
3434
steps:
3535
- uses: actions/checkout@v4
3636
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
37+
- run: rustup component add clippy
3738
- run: cargo clippy -- -D warnings
3839
- run: cargo fmt --all -- --check
3940
- run: cargo build --verbose

0 commit comments

Comments
 (0)