Files
wasmtime/cranelift/format-all.sh
Dan Gohman 6b88cd44a8 Update to rustfmt-preview (#348)
* Update to rustfmt-preview.

* Run "cargo fmt --all" with rustfmt 0.4.1.

rustfmt 0.4.1 is the latest release of rustfmt-preview available on the
stable channel.

* Fix a long line that rustfmt 0.4.1 can't handle.

* Remove unneeded commas left behind by rustfmt.
2018-05-25 11:38:38 -07:00

12 lines
196 B
Bash
Executable File

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