File tree Expand file tree Collapse file tree 4 files changed +10
-4
lines changed
Expand file tree Collapse file tree 4 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 22
33set -e
44
5+ echo " + git status --porcelain"
56git_status=" $( git status --porcelain) "
6- if test -n " $git_status " ; then
7+ if [ " $git_status " != " " ] ; then
78 echo " $git_status "
89 echo " pre-push hook failed: working directory is dirty"
910 exit 1
@@ -16,7 +17,7 @@ if rg "FIXME" --hidden --glob="!$0" "$PWD"; then
1617 echo " pre-push hook failed: FIXME not allowed"
1718 exit 1
1819fi
19- cargo udeps --all-targets --all-features
20+ cargo +nightly udeps --all-targets --all-features
2021export RUSTFLAGS=" -D warnings"
2122cargo clippy --all-targets --all-features
2223cargo test --all-features
Original file line number Diff line number Diff line change 99
1010env :
1111 RUSTFLAGS : " -D warnings"
12+ RUSTUP_TOOLCHAIN : " 1.89"
1213
1314jobs :
1415 check :
2425 - name : install
2526 uses : dtolnay/rust-toolchain@stable
2627 with :
27- toolchain : stable
28+ toolchain : 1.89
2829 components : clippy
2930 - name : clippy
3031 run : cargo clippy --all-targets --all-features
Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ rand_xorshift = "0.4.*"
2020[features ]
2121derive_serdes = [" serde" , " smallvec/serde" ]
2222
23+ [lints .rust ]
24+ unknown-lints = " deny"
25+
2326[lints .clippy ]
2427allow-attributes = " warn"
2528assertions-on-result-states = " warn"
@@ -34,7 +37,7 @@ cloned-instead-of-copied = "warn"
3437collection-is-never-read = " warn"
3538debug-assert-with-mut-call = " warn"
3639derive-partial-eq-without-eq = " warn"
37- doc-broken-link = " warn"
40+ # doc-broken-link = "warn" # lint not available in rust 1.89
3841doc-include-without-cfg = " warn"
3942doc-link-code = " warn"
4043doc-link-with-quotes = " warn"
Original file line number Diff line number Diff line change 1+ stable
You can’t perform that action at this time.
0 commit comments