abstreet/fmt.sh

8 lines
182 B
Bash
Raw Normal View History

#!/bin/bash
for x in `find */src */tests | grep '.rs$' | xargs`; do
~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustfmt $x;
done
rm */src/*.bk -f;
rm */src/*/*.bk -f;