Skip to content

Commit f2c64fd

Browse files
jbeaurivageianrrees
authored andcommitted
chore(ci): Use cargo fmt r/t rustfmt in CI
PR #875
1 parent 24dc0cb commit f2c64fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rustfmt.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ echo $DIRECTORIES
66
for DIR in $DIRECTORIES
77
do
88
pushd $(dirname $DIR)
9-
rustfmt --edition 2018 --check ./src/lib.rs ./examples/*.rs
9+
cargo fmt -- --check
1010
RET=$(($RET + $?))
1111
popd
1212
done
@@ -17,7 +17,7 @@ echo $DIRECTORIES
1717
for DIR in $DIRECTORIES
1818
do
1919
pushd $(dirname $DIR)
20-
rustfmt --edition 2018 --check ./src/lib.rs
20+
cargo fmt -- --check
2121
RET=$(($RET + $?))
2222
popd
2323
done

0 commit comments

Comments
 (0)