mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-23 16:01:04 +01:00
[rs] Fix all the clippy lints and add clippy/fmt CI
This commit is contained in:
1 parent
aa45e7668b
commit
162fe18e7d
14 files changed
+54
-41
No files matched your search
@@ -43,3 +43,23 @@ jobs:
|
||||
- name: cargo doc
|
||||
run: cargo --version; cargo doc --lib --no-deps
|
||||
continue-on-error: true
|
||||
|
||||
lint:
|
||||
name: Clippy
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: stable
|
||||
override: true
|
||||
- run: rustup component add clippy
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: clippy
|
||||
args: -- -D warnings
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: fmt
|
||||
args: -- --check
|
||||
Reference in new issue
Block a user