Pass arguments on to rustfmt.
This allows the usage:
src/format-all.sh --write-mode=diff
This commit is contained in:
@@ -10,5 +10,5 @@ src=$(pwd)
|
|||||||
|
|
||||||
for crate in $(find "$src" -name Cargo.toml); do
|
for crate in $(find "$src" -name Cargo.toml); do
|
||||||
cd $(dirname "$crate")
|
cd $(dirname "$crate")
|
||||||
cargo fmt
|
cargo fmt -- "$@"
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user