lint code with clippy
@@ -16,7 +16,11 @@ jobs:
run: rustup default 1.45.0
- name: Install rustfmt
run: rustup component add rustfmt
+ - name: Install clippy
+ run: rustup component add clippy
- name: Lint code format
run: cargo fmt --all -- --check
+ - name: Lint code
+ run: cargo clippy --all -- -D warnings
- name: Test
run: cargo test unit_tests -- --test-threads=1
