* Update to rustfmt-preview. * Run "cargo fmt --all" with rustfmt 0.4.1. rustfmt 0.4.1 is the latest release of rustfmt-preview available on the stable channel. * Fix a long line that rustfmt 0.4.1 can't handle. * Remove unneeded commas left behind by rustfmt.
12 lines
196 B
Bash
Executable File
12 lines
196 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 +stable fmt --all -- "$@"
|