Skip to content

Commit 28708bc

Browse files
committed
Enable clippy on CI
Add a clippy configuration file configuring the MSRV. Add a github actions job to run clippy on CI.
1 parent f304bcb commit 28708bc

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.github/workflows/rust.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,19 @@ jobs:
8888
override: true
8989
- name: Create Doc
9090
run: cargo doc
91+
92+
Clippy:
93+
name: Clippy
94+
runs-on: ubuntu-latest
95+
steps:
96+
- uses: actions/checkout@v2
97+
- uses: actions-rs/toolchain@v1
98+
with:
99+
profile: minimal
100+
toolchain: stable
101+
override: true
102+
- run: rustup component add clippy
103+
- uses: actions-rs/cargo@v1
104+
with:
105+
command: clippy
106+
args: --all-targets -- -D warnings

clippy.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
msrv = "1.41.1"

0 commit comments

Comments
 (0)