Skip to content

Commit bc73ca0

Browse files
committed
chore: update check_core_before_commit.sh
Signed-off-by: Xin Liu <sam@secondstate.io>
1 parent e2c3ff3 commit bc73ca0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

check_code_before_commit.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/bash
12

23
# Find unused dependencies in Cargo.toml
34
cargo +nightly udeps
@@ -6,7 +7,7 @@ cargo +nightly udeps
67
cargo sort
78

89
# Format code
9-
cargo fmt
10+
cargo +nightly fmt --all -- --check
1011

1112
# Clippy
12-
cargo +nightly clippy --all-features -- -D warnings
13+
cargo +nightly clippy --target wasm32-wasip1 --all-features -- -D warnings

0 commit comments

Comments
 (0)