Files
wasmtime/cranelift/format-all.sh
Dan Gohman ddf967962f Use --all in some scripts. (#154)
This avoids the need to list all the packages in test-all.sh.
2017-09-12 13:27:58 -07:00

14 lines
208 B
Bash
Executable File

#!/bin/bash
# Format all sources using rustfmt.
# Exit immediately on errors.
set -e
cd $(dirname "$0")
# Make sure we can find rustfmt.
export PATH="$PATH:$HOME/.cargo/bin"
exec cargo fmt --all -- "$@"