12 lines
188 B
Bash
Executable File
12 lines
188 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
# Format all sources using rustfmt.
|
|
|
|
cd $(dirname "$0")
|
|
|
|
# Make sure we can find rustfmt.
|
|
export PATH="$PATH:$HOME/.cargo/bin"
|
|
|
|
exec cargo fmt --all -- "$@"
|