Pass arguments on to rustfmt.

This allows the usage:

    src/format-all.sh --write-mode=diff
This commit is contained in:
Jakob Stoklund Olesen
2016-08-24 16:29:54 -07:00
parent eb03abe864
commit 33235b3981

View File

@@ -10,5 +10,5 @@ src=$(pwd)
for crate in $(find "$src" -name Cargo.toml); do
cd $(dirname "$crate")
cargo fmt
cargo fmt -- "$@"
done