Make sure we can find rustfmt.
This commit is contained in:
@@ -8,6 +8,9 @@ set -e
|
|||||||
cd $(dirname "$0")
|
cd $(dirname "$0")
|
||||||
src=$(pwd)
|
src=$(pwd)
|
||||||
|
|
||||||
|
# Make sure we can find rustfmt.
|
||||||
|
export PATH="$PATH:$HOME/.cargo/bin"
|
||||||
|
|
||||||
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 -- "$@"
|
||||||
|
|||||||
Reference in New Issue
Block a user