Skip to content

Commit

Permalink
Merge pull request #1064 from arnaudgolfouse/fmt-args
Browse files Browse the repository at this point in the history
Improve the `fmt` script, and make it take arguments for rustfmt
  • Loading branch information
arnaudgolfouse authored Aug 9, 2024
2 parents f6a3a0d + befc35c commit f3f1df1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions fmt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
# We use zsh instead of bash to enable globstar "**".
# We don't instead run "shopt -s globstar", because shopt is not supported in Mac OS.

SCRIPTPATH=$(dirname "$BASH_SOURCE")
set -e

SCRIPTPATH=${0:a:h}
pushd $SCRIPTPATH > /dev/null
rustfmt **/*.rs
rustfmt $@ **/*.rs
popd > /dev/null

0 comments on commit f3f1df1

Please sign in to comment.