We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a1eabd commit 22bccaaCopy full SHA for 22bccaa
1 file changed
.github/workflows/lint.yml
@@ -0,0 +1,23 @@
1
+name: Lint and format check
2
+
3
+on: [ pull_request ]
4
5
+permissions:
6
+ contents: read
7
8
+env:
9
+ RUSTFLAGS: "-Dwarnings" # treat warnings as errors
10
11
+jobs:
12
+ lint:
13
+ runs-on: ubuntu-latest
14
15
+ steps:
16
+ - name: Checkout repository.
17
+ uses: actions/checkout@v6
18
19
+ - name: Run Clippy.
20
+ run: cargo clippy --all-targets --all-features
21
22
+ - name: Run fmt check.
23
+ run: cargo fmt --all -- --check
0 commit comments