Nick Cameron
092f31b72a
Merge pull request #1744 from topecongiro/macro-arguments-trailing-comma
...
Do not add trailing comma inside macro invocation unless there alreay is
2017-06-23 17:02:45 +12:00
topecongiro
eeb5599b4b
Do not add trailing comma inside macro invocation unless there already is
2017-06-23 13:43:43 +09:00
Nick Cameron
c9d53e13d7
nightly-0.1.6
2017-06-23 16:30:19 +12:00
Nick Cameron
63076d7f21
Merge pull request #1743 from topecongiro/macro-trailing-comma
...
Preserve trailing comma of macro invocation
2017-06-23 16:23:32 +12:00
topecongiro
f062544cdd
Update tests inside macro.rs
...
I moved around some tests in order to prevent rustfmt from failing to format
tests after macro invocations whose arguments cannot be parsed as expressions.
2017-06-23 13:03:37 +09:00
topecongiro
60f0c576c9
Preserve trailing comma of macro invocation
2017-06-23 12:59:47 +09:00
Nick Cameron
63784cb75f
Merge pull request #1738 from birkenfeld/patch-1
...
Handle proc-macro crates in cargo-fmt
2017-06-22 11:09:40 +12:00
Nick Cameron
481defac8f
Merge pull request #1740 from euclio/patch-2
...
remove link to old style guidelines
2017-06-22 07:59:19 +12:00
Andy Russell
75ec25a2ca
remove link to old style guidelines
...
Fixes #1564 .
2017-06-21 13:45:24 -04:00
Georg Brandl
b95666b20c
Handle proc-macro crates in cargo-fmt
2017-06-21 07:32:23 +02:00
Nick Cameron
a4af0ec0e3
Merge pull request #1729 from topecongiro/single-line-block
...
Allow single line block in expression context
2017-06-21 08:33:12 +12:00
topecongiro
64fc9e31e7
Fix a typo
2017-06-20 22:38:14 +09:00
topecongiro
b5a13602d9
Update tests
2017-06-20 22:35:16 +09:00
topecongiro
fb1225a8af
Use format_expr wherever single-lined block is not allowed
2017-06-20 22:35:16 +09:00
topecongiro
eeb20e2033
Refactor rewrite for ast::Block
2017-06-20 22:35:16 +09:00
Nick Cameron
90251c32ff
Add warning about write-mode change
2017-06-20 18:47:32 +12:00
Nick Cameron
fbc95385d3
nightly-0.1.5
2017-06-20 17:00:01 +12:00
Nick Cameron
e8494d7a0b
Merge pull request #1709 from theotherphil/master
...
Fix defaults in Configurations.md
2017-06-20 16:29:01 +12:00
Seiichi Uchida
f74be44b1c
Merge pull request #1732 from olson-sean-k/issue-1377
...
Keep brace on same line as `match` when using `ClosingNextLine`.
2017-06-20 12:07:03 +09:00
Nick Cameron
c4b662625b
Merge pull request #1735 from kogai/public-file-lines
...
Public file-lines constructor
2017-06-20 13:09:43 +12:00
Nick Cameron
1ebbc3cd68
Merge pull request #1734 from topecongiro/raw-string-literal
...
Allow extending a chain after raw string literal
2017-06-20 12:29:25 +12:00
Nick Cameron
6f51e9454e
Merge pull request #1733 from topecongiro/cargo-fmt
...
Do not run cargo fmt if there are unnecessary arguments
2017-06-20 12:28:36 +12:00
Nick Cameron
779f037c8d
Merge pull request #1728 from topecongiro/trailing-comma
...
Apply config.trailing_comma wherever possible
2017-06-20 12:22:58 +12:00
Phil Ellison
55c2e3b1a4
Fix control_style example
2017-06-19 19:43:38 +01:00
Sean Olson
ea1df1777b
Modify control_brace_sytle
test to ensure match
braces are formatted correctly.
2017-06-19 08:12:15 -07:00
Seiichi Uchida
53202b4029
Do not run cargo fmt if there are unnecessary arguments
2017-06-19 23:39:59 +09:00
Sean Olson
d7298fbd97
Keep brace on same line as match
when using ClosingNextLine
for control_brace_style
.
2017-06-19 07:14:51 -07:00
Seiichi Uchida
b99f3cb447
Allow extending a chain after raw string literal
2017-06-19 22:06:08 +09:00
shinichi kogai
325d02bcc7
Public file-lines constructor
2017-06-19 21:14:33 +09:00
topecongiro
512c8c1edf
Apply config.trailing_comma wherever possible
2017-06-19 16:00:04 +09:00
Nick Cameron
a87a4450aa
Merge pull request #1727 from topecongiro/disallow-overflowing-closure
...
Disallow overflowing closure if there are multiple closures in args
2017-06-19 16:49:29 +12:00
topecongiro
ec4b439484
Disallow overflowing closure if there are multiple closures in args
2017-06-19 12:07:20 +09:00
Nick Cameron
f2fd4fbf2c
Merge pull request #1726 from topecongiro/tuple-overflow
...
Apply the same overflowing rule to tuple as function call
2017-06-19 14:36:50 +12:00
topecongiro
482675cf58
Update tests
2017-06-19 11:25:21 +09:00
topecongiro
0b13420943
Apply the same overflowing rule to tuple as function call
2017-06-19 11:24:36 +09:00
Nick Cameron
cd6092ebf9
nightly-0.1.4
2017-06-19 13:22:42 +12:00
Nick Cameron
82d95cc4e0
Merge pull request #1724 from topecongiro/multiline-string-lit
...
Align multiline string literal
2017-06-19 13:02:21 +12:00
Nick Cameron
392d34b507
Merge pull request #1711 from topecongiro/combine-control-flow-condition-body
...
Combine control flow condition and body
2017-06-19 13:00:27 +12:00
Nick Cameron
4368cd391e
Merge pull request #1719 from topecongiro/macro-on-rhs
...
Avoid line break when rhs of assignment is an invalid macro
2017-06-19 13:00:12 +12:00
Nick Cameron
34fa428471
make file_lines::Range public
2017-06-19 12:58:29 +12:00
Seiichi Uchida
75d86eb1a0
Format source codes
2017-06-18 22:45:08 +09:00
Seiichi Uchida
ae9ce7bcd9
Align multiline string literal
2017-06-18 22:44:56 +09:00
Phil Ellison
ba36bbcfe2
Document control_style in Configurations.md
2017-06-18 10:37:05 +01:00
Phil Ellison
40db2af18e
Update names on where_style code snippets
2017-06-18 09:34:24 +01:00
Phil Ellison
e9c81cd537
Fix names of possible values for where_style
2017-06-18 08:33:32 +01:00
topecongiro
91bd1fdc86
Format source codes
2017-06-18 14:29:17 +09:00
topecongiro
3dcd3d7fb0
Combine condition and body of control flow
...
If the condition of control flow expressions ends with closing parens and alike,
put the opening bracket of the body on the same line with closing parens.
2017-06-18 14:27:58 +09:00
Seiichi Uchida
6afb0e856c
Avoid line break when rhs of assignment is an invalid macro
2017-06-18 14:25:21 +09:00
Nick Cameron
be18e7af90
Merge pull request #1717 from topecongiro/type-and-generics
...
Refactor format against types and generics
2017-06-18 15:57:34 +12:00
Nick Cameron
2061f101c7
Merge pull request #1708 from topecongiro/chain-overflow
...
Allow overflowing the last element of chain if it is originally multi-lined
2017-06-18 15:29:52 +12:00