Skip to content

Commit

Permalink
Add Rust clippy checks and VS Code settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ZibanPirate committed Jan 9, 2024
1 parent 1c4b2b7 commit 1bfb8d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/rust-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cd rust && cargo clippy -- -Dwarnings
- run: cd rust && cargo build --verbose
- run: cd rust && cargo test --verbose
- run: cd rust && cargo test --verbose --features serde_derive
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"rust-analyzer.checkOnSave": true,
"rust-analyzer.check.overrideCommand": ["cargo", "clippy", "--message-format=json"]
}

0 comments on commit 1bfb8d3

Please sign in to comment.