Skip to content

Commit 56619ab

Browse files
committed
Run clippy checks in CI
1 parent 51363fa commit 56619ab

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/rust.yml

+18
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,23 @@ jobs:
4141
4242
- run: cargo test --all
4343

44+
clippy:
45+
name: Clippy
46+
runs-on: ubuntu-24.04
47+
steps:
48+
- name: Checkout repository
49+
uses: actions/checkout@v4
50+
51+
- name: Update rust
52+
run: |
53+
# use beta since it gives us near-latest fixes but isn't as volatile as nightly
54+
rustup default beta
55+
rustup component add clippy
56+
rustup update --no-self-update
57+
58+
# FIXME(msrv): suggestions do not work in 1.23, nor dows `#![allow(clippy::...)]`
59+
- run: cargo clippy --all -- -Aclippy::while_let_loop
60+
4461
msrv:
4562
name: Check building with the MSRV
4663
runs-on: ubuntu-24.04
@@ -70,6 +87,7 @@ jobs:
7087
success:
7188
needs:
7289
- test
90+
- clippy
7391
- msrv
7492
- rustfmt
7593
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)