added ci scripts for rust
This commit is contained in:
13
ci/run-rustfmt.sh
Executable file
13
ci/run-rustfmt.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
ERROR=0
|
||||
|
||||
while IFS= read -r -d '' f; do
|
||||
echo "${f}"
|
||||
|
||||
if [ "$(rustfmt --write-mode=diff "$f")" != $'' ] ; then
|
||||
ERROR=1
|
||||
fi
|
||||
done < <(find . -type f -name '*.rs' -print0)
|
||||
|
||||
exit ${ERROR}
|
||||
Reference in New Issue
Block a user