Skip to content

Commit 4718a52

Browse files
committed
Add --check to cargo fmt
1 parent 28138c7 commit 4718a52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ unit() (
3232
eval run_if "${TEST:-true}" cargo test "${TEST_FLAGS:-}" "$@"
3333
)
3434

35-
run_if "${FMT:-true}" cargo fmt
35+
run_if "${FMT:-true}" cargo fmt -- --check
3636
unit "$@"
3737
unit --no-default-features "$@"
3838
unit --all-features "$@"

0 commit comments

Comments
 (0)