Skip to content

Commit

Permalink
Ignore target directory and ./rust_fmt.sh uses parallel now
Browse files Browse the repository at this point in the history
  • Loading branch information
allada committed Dec 25, 2020
1 parent 862a923 commit 7a070b9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
bazel-*
target/
1 change: 1 addition & 0 deletions proto/genproto/google.protobuf.pb.rs
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
// Copyright 2020 Nathan (Blaise) Bruer. All rights reserved.

4 changes: 2 additions & 2 deletions rust_fmt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ RUST_FMT="./bazel-bin/external/raze__rustfmt_nightly__1_4_21/cargo_bin_rustfmt"
if [ "${1:-}" != "" ]; then
FILES="$@"
else
FILES="$(find . -name '*.rs')"
FILES="$(find . -name '*.rs' ! -name '*.pb.rs')"
fi
echo "$FILES" | xargs $RUST_FMT --emit files --edition 2018
echo "$FILES" | parallel -I% --max-args 1 $RUST_FMT --emit files --edition 2018 %

0 comments on commit 7a070b9

Please sign in to comment.