1#!/bin/bash 2set -euo pipefail 3 4# Format all sources using rustfmt. 5 6topdir=$(dirname "$0")/.. 7cd "$topdir" 8 9# Make sure we can find rustfmt. 10export PATH="$PATH:$HOME/.cargo/bin" 11 12exec cargo +stable fmt --all -- "$@" 13 14