14 lines
208 B
Bash
Executable File
14 lines
208 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Format all sources using rustfmt.
|
|
|
|
# Exit immediately on errors.
|
|
set -e
|
|
|
|
cd $(dirname "$0")
|
|
|
|
# Make sure we can find rustfmt.
|
|
export PATH="$PATH:$HOME/.cargo/bin"
|
|
|
|
exec cargo fmt --all -- "$@"
|