topecongiro
b4d4b5795e
Use BTreeMap to guarantee consistent ordering
2019-03-25 07:54:52 +09:00
topecongiro
5f1f5aac05
Make sure that we run rustfmt against every edition
2019-03-25 07:54:31 +09:00
Alexander Regueiro
7a3b7c9275
Various cosmetic improvements ( #3403 )
2019-02-19 11:56:42 +09:00
Hirokazu Hata
8183b949c4
cargo fmt
2019-02-09 16:20:38 +09:00
Hirokazu Hata
c0f93a6ea3
cargo +nightly fix --edition-idioms
2019-02-09 15:53:12 +09:00
Matthias Krüger
d44ee75438
update dependencies
...
update itertools from 0.7 to 0.8
update env_logger from 0.5 to 0.6
update cargo_metadata from 0.6 to 0.7
update bytecount from 0.4 to 0.5
2019-01-27 00:58:46 +01:00
David Hewson
a8d2591f0c
allow specifying package with -p
...
currently `cargo fmt -p blah` is rejected but `cargo fmt --package blah` is allowed. both should be allowed
2019-01-01 17:49:55 +00:00
Stéphane Campinas
a2da636ab3
allow to run a rustfmt command from cargo-fmt even when there is no target
2018-11-26 20:39:12 +01:00
Otavio Salvador
12275f2e6a
cargo-fmt: Fix splitting of targets across editions
...
When I reworked the code, it ended not generating the complete list of
need targets. Fix it.
Fixes : #3143 .
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-10-27 16:13:22 -03:00
Otavio Salvador
3efca8a596
cargo-fmt: Add --edition when printing the command
...
By mistake, it was forgotten to print out the edition in use when
printing the rustcmd command. Fix it.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-10-27 11:49:48 -03:00
Otavio Salvador
de0b661bfa
cargo-fmt: Take into account the edition for each target
...
When formatting the crate, with `cargo fmt`, it parses each target
with the specific Rust edition.
Fixes : #3104 .
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-10-24 10:01:08 -03:00
Seiichi Uchida
e2b9c66cc9
Cargo fmt
2018-09-19 23:22:26 +09:00
Nathan Sutton
d165533813
Improve error message when failing cargo metadata ( #3024 )
2018-09-18 20:20:07 +09:00
Matthias Krüger
5947ea607c
cargo fmt: fix typo in format_crate(): (verison -> version)
2018-09-12 21:43:31 +02:00
Nick Cameron
481e85cc58
formatting
2018-07-24 15:46:39 +12:00
Nick Cameron
f545dfe95e
Fix tests
2018-06-05 20:58:02 +12:00
king6cong
56a3d039ce
update rustfmt flags that should work without targets
2018-06-05 15:43:48 +08:00
memoryleak47
d48cbedfe4
typo ( #2598 )
...
* typo
* more typos
2018-04-05 12:47:09 +09:00
topecongiro
ccec777f92
Cargo fmt and update tests
2018-03-22 16:09:21 +09:00
Rob Tsuk
ba10a4c48d
Canonicalise the paths
2018-03-09 07:24:40 -07:00
Rob Tsuk
53dcb0d09d
Restore cargo fmt behavior in workspaces
...
Previously, cargo fmt invoked without parameters would
only format the crate in the current directory, even if
the crate was part of a workspace. This patch restores
that behavior.
2018-03-09 07:24:40 -07:00
Nick Cameron
39301ae5f2
Go back to a non-workspace structure
...
Kinda reverts https://github.com/rust-lang-nursery/rustfmt/pull/2419
2018-03-02 14:58:23 +13:00