File tree Expand file tree Collapse file tree 2 files changed +16
-7
lines changed Expand file tree Collapse file tree 2 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ repository = "https://github.com/kojiishi/monitor-input-rs"
9
9
documentation = " http://docs.rs/monitor-input"
10
10
readme = " README.md"
11
11
license = " Apache-2.0"
12
- exclude = [" .github" , " .gitignore" ]
12
+ exclude = [" .github" , " .gitignore" , " hooks " ]
13
13
14
14
[dependencies ]
15
15
anyhow = " 1.0.97"
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- set -x
3
- cargo test
4
- # cargo fmt --all --check
5
- cargo fmt --all
6
- # cargo clippy --all-targets --all-features -- -D warnings
7
- cargo clippy --fix --allow-dirty --all-targets --all-features -- -D warnings
2
+ set -e
3
+ (
4
+ set -x
5
+ cargo test --all-features
6
+ )
7
+ if [[ " $1 " == ' -f' ]]; then
8
+ set -x
9
+ cargo clippy --fix --allow-dirty --all-targets --all-features -- -D warnings
10
+ cargo fmt --all
11
+ git diff
12
+ else
13
+ set -x
14
+ cargo clippy --all-targets --all-features -- -D warnings
15
+ cargo fmt --all --check
16
+ fi
You can’t perform that action at this time.
0 commit comments