You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

12 lines
216 B

#!/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 -- "$@"