gecko-dev/third_party/rust/wasmparser-0.48.2/format-all.sh

13 строки
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 -- "$@"