Skip to content

Commit

Permalink
style: temporarily allow clippy::let_with_type_underscore
Browse files Browse the repository at this point in the history
  • Loading branch information
aboqasem committed Jun 10, 2023
1 parent a66e780 commit d7cb00a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/general.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ jobs:
run: ./scripts/migrate

- name: Linting
run: cargo clippy --all-targets --all-features -- -D warnings
run: ./scripts/lint

- name: Testing
run: cargo test
run: ./scripts/test

fmt:
name: Rustfmt
Expand Down
3 changes: 3 additions & 0 deletions scripts/lint
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

cargo clippy --all-targets --all-features -- -D warnings -A clippy::let_with_type_underscore
3 changes: 3 additions & 0 deletions scripts/lint-test
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

./scripts/lint && ./scripts/test
3 changes: 3 additions & 0 deletions scripts/test
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

cargo test -- --nocapture
2 changes: 1 addition & 1 deletion scripts/watch
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash

cargo watch -x "clippy --all-targets --all-features -- -D warnings" -x "test -- --nocapture" -x "run"
cargo watch -s "./scripts/lint-test && cargo run"

0 comments on commit d7cb00a

Please sign in to comment.