summaryrefslogtreecommitdiffstats
path: root/third_party/rust/wasmparser-0.48.2/format-all.sh
blob: 64c967ad243408211e97b801a183f37d4520e09d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/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 -- "$@"