Files
wasmtime/cranelift/format-all.sh
2018-06-12 05:02:25 -07:00

13 lines
213 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
# Format all sources using rustfmt.
topdir=$(dirname "$0")
cd "$topdir"
# Make sure we can find rustfmt.
export PATH="$PATH:$HOME/.cargo/bin"
exec cargo +stable fmt --all -- "$@"