Skip to content

Commit da0a761

Browse files
authored
Fix according to latest clippy (#17)
* Install rustfmt & clippy explicitly in CI * Adjust clippy setting from cli
1 parent f59b6e9 commit da0a761

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/rust.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
- name: Install llvm
1919
run: sudo apt update && sudo apt install -y clang llvm clang-format lld
2020
- uses: actions-rust-lang/setup-rust-toolchain@v1
21+
with:
22+
components: rustfmt, clippy
2123
- name: Prepare, build, test, clippy, format
2224
run: make prepare build test clippy fmt
2325
- name: git diff
@@ -45,5 +47,7 @@ jobs:
4547
- name: Install latest llvm & lld
4648
run: brew install llvm lld
4749
- uses: actions-rust-lang/setup-rust-toolchain@v1
50+
with:
51+
components: rustfmt, clippy
4852
- name: Prepare, build, test, clippy
4953
run: make prepare build test clippy

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ check:
8383
cargo check $(CARGO_ARGS)
8484

8585
clippy:
86-
cargo clippy $(CARGO_ARGS)
86+
cargo clippy $(CARGO_ARGS) -- -A clippy::manual-is-multiple-of
8787

8888
fmt:
8989
cargo fmt $(CARGO_ARGS)

0 commit comments

Comments
 (0)