Files
resy/ci/run-rustfmt.sh
Simon Wörner cef96956a4 fixed ci
2017-05-02 22:30:24 +02:00

11 lines
180 B
Bash
Executable File

#!/usr/bin/env bash
ERROR=0
while IFS= read -r -d '' f; do
echo "${f}"
rustfmt --write-mode=diff "$f" || ERROR=1
done < <(find . -type f -name '*.rs' -print0)
exit ${ERROR}