Joshua Nelson
dadcb0550d
Allow formatting specific subdirectories
2021-05-01 01:57:15 -04:00
The8472
c07197046d
remove redundant box wrapper
2021-02-20 23:12:56 +01:00
The8472
6dc948e723
limit rustfmt parallelism by taking -j into account
2021-02-20 23:12:56 +01:00
The8472
211d49c73c
parallelize x.py test tidy
...
old:
```
real 0m11.123s
user 0m14.495s
sys 0m5.227s
```
new:
```
real 0m2.767s
user 0m13.014s
sys 0m1.691s
```
2021-02-20 23:12:53 +01:00
Joshua Nelson
d04ca008e1
Remove unnecessary clone()s in bootstrap
...
The performance difference is negligible, but it makes me feel better.
Note that this does not remove some clones in `config`, because it would
require changing the logic around (and performance doesn't matter
for bootstrap).
2020-09-16 08:51:42 -04:00
Matthias Krüger
108a3f8a5c
bootstrap: fix a couple of clippy lint warnings
...
clippy::print_literal
clippy::clone_on_copy
clippy::single_char_pattern
clippy::into_iter_on_ref
clippy::match_like_matches_macro
2020-08-22 01:08:04 +02:00
Ralf Jung
4caddaeeea
bootstrap: fix typo
2020-05-17 11:41:20 +02:00
Dillon Amburgey
37c63edfc4
Validate git setup before accessing functionality
2020-03-21 13:17:01 -04:00
Eric Huss
287c4eb094
Tidy: fix running rustfmt twice
2020-03-18 08:15:29 -07:00
Felix S. Klock II
cac4eeee24
Ignore untracked paths when running rustfmt on repository.
2020-02-27 15:52:09 -05:00
Yuki Okushi
d975228ced
Tweak assertion note in fmt
2020-01-14 07:09:15 +09:00
Mark Rousskov
8eb7c58dbb
Remove most files from format ignore list
...
Also moves formatting to use edition 2018, and to be done in parallel.
This brings near-linear speed ups (at least with a small amount of
cores).
2019-12-22 17:41:02 -05:00
Mark Rousskov
b9e4174d8c
Do not run if rustfmt.toml does not exist
...
distcheck (and generally publishing tarballs) will not package
rustfmt.toml and we for now still support running tidy etc in those
tarballs.
2019-12-22 07:44:09 -05:00
Mark Rousskov
dddd872427
Implement rustfmt running manually using ignore crate
...
This replaces cargo-fmt with rustfmt with --skip-children which should
allow us to format code without running into rust-lang/rustfmt#3930 .
This also bumps up the version of rustfmt used to a more recent one.
2019-12-21 20:23:55 -05:00
Adam Perry
a08c56295a
Implement ./x.py fmt [--check].
2019-12-21 20:23:39 -05:00