topecongiro
|
34b0c9cf3f
|
Do not give up when we run out of space when choosing rhs
|
2017-11-21 08:52:11 +09:00 |
|
Nick Cameron
|
f987946078
|
Merge pull request #2161 from topecongiro/issue-1807
Implement RFC style for match pattern
|
2017-11-20 14:51:53 +13:00 |
|
topecongiro
|
d5152fc8c6
|
Use choose_rhs() for the layout of multi-lined struct field
|
2017-11-18 15:45:58 +09:00 |
|
topecongiro
|
95d7619e34
|
Use mixed layout for patterns that are all short
|
2017-11-16 17:43:36 +09:00 |
|
topecongiro
|
e09a0cc836
|
Add is_short_pattern()
|
2017-11-16 17:43:36 +09:00 |
|
topecongiro
|
35466adbfe
|
Generalize ListItems to allow a separator other than comma
|
2017-11-16 17:43:36 +09:00 |
|
topecongiro
|
34c2499029
|
Cargo fmt
|
2017-11-16 17:43:06 +09:00 |
|
topecongiro
|
4cd2e6f39a
|
Generalize rewrite_assign_rhs()
|
2017-11-16 11:26:36 +09:00 |
|
Nick Cameron
|
a90b76a731
|
Merge pull request #2153 from topecongiro/issue-2152
Return None when a literal exceeds budget
|
2017-11-15 15:43:03 +13:00 |
|
topecongiro
|
bdb8f369e8
|
Return None when a literal exceeds budget
|
2017-11-15 10:36:49 +09:00 |
|
topecongiro
|
bc543cce0b
|
Combine spaces_within_parens and spaces_within_brackets
|
2017-11-14 23:42:31 +09:00 |
|
topecongiro
|
babc479783
|
Use space_before_colon and space_after_colon
|
2017-11-14 23:25:36 +09:00 |
|
topecongiro
|
04f09c9d85
|
Replace '*_indent' with 'indent_style' in src
|
2017-11-13 17:33:32 +09:00 |
|
Nick Cameron
|
e6800bf27d
|
remove closure_block_indent_threshold option
|
2017-11-13 15:40:54 +13:00 |
|
Nick Cameron
|
e6253c4d31
|
Extract a closures module
|
2017-11-13 15:27:16 +13:00 |
|
Nick Cameron
|
10bce817d9
|
Some basic refactoring
|
2017-11-13 15:13:23 +13:00 |
|
Seiichi Uchida
|
d9e31be40f
|
Refactor: use less vertical lines
|
2017-11-11 23:15:57 +09:00 |
|
Seiichi Uchida
|
033ce59a6a
|
Return None when string literal from source exceeds max width
|
2017-11-11 23:15:33 +09:00 |
|
Seiichi Uchida
|
1664ebb18b
|
Return 'None' when macro call snippet from source exceeds max width
|
2017-11-11 23:14:24 +09:00 |
|
topecongiro
|
3e8f4b7907
|
Fix PairParts related issues
|
2017-11-06 21:48:05 +09:00 |
|
topecongiro
|
c73871c516
|
Introduce PairParts to reduce the number of args of rewrite_pair()
|
2017-11-06 13:52:25 +09:00 |
|
topecongiro
|
10cb568c18
|
Remove redundant references
|
2017-11-06 13:52:25 +09:00 |
|
topecongiro
|
6c5ac5a9b3
|
Remove needless borrows
|
2017-11-06 13:52:25 +09:00 |
|
topecongiro
|
40c5666af6
|
Rename 'struct_lit_style' to 'struct_lit_indent'
|
2017-11-04 22:47:28 +09:00 |
|
topecongiro
|
d5d8740993
|
Rename 'fn_call_style' to 'fn_call_indent'
|
2017-11-04 22:46:40 +09:00 |
|
topecongiro
|
5096cdff56
|
Rename 'array_layout' to 'array_indent'
|
2017-11-04 22:45:09 +09:00 |
|
topecongiro
|
bfaeac202a
|
Add a comment on args_have_many_closure()
|
2017-11-03 08:57:38 +09:00 |
|
topecongiro
|
b17de6228f
|
Cargo fmt
|
2017-11-02 21:45:00 +09:00 |
|
topecongiro
|
960fec898b
|
Force to use block for closure's body when there is only a single control expr
|
2017-11-02 21:43:33 +09:00 |
|
topecongiro
|
e4f13dfdd6
|
Use is_unsafe_block()
|
2017-11-02 21:42:11 +09:00 |
|
topecongiro
|
81cd12cc08
|
Add args_have_many_closure()
|
2017-11-02 21:41:46 +09:00 |
|
Nick Cameron
|
809e06ee32
|
Merge pull request #2102 from topecongiro/soft-wrapping-comments
Soft wrapping for comments
|
2017-11-02 15:15:38 +13:00 |
|
Martin Lindhe
|
f930a16b8d
|
fix some typos
|
2017-11-01 07:33:55 +01:00 |
|
topecongiro
|
bc31014423
|
Add an optional max width argument to rewrite_string()
|
2017-10-31 15:04:50 +09:00 |
|
topecongiro
|
7e99893e25
|
Use visual indent only when rewriting string literal
|
2017-10-31 15:03:46 +09:00 |
|
Seiichi Uchida
|
2e06dea146
|
Format match expr with empty body
|
2017-10-30 23:37:26 +09:00 |
|
Seiichi Uchida
|
e84e01c442
|
Use context.budget()
|
2017-10-30 23:37:26 +09:00 |
|
Nick Cameron
|
90b3222adb
|
Merge pull request #2090 from topecongiro/issue-2087
Only read the trailing comma of outermost fn call
|
2017-10-27 15:18:13 +05:30 |
|
Nick Cameron
|
f159d32c1f
|
Merge pull request #2089 from topecongiro/closure-block-body-with-comment
Fix rustfmt failing to format closure block body with comment
|
2017-10-27 15:17:38 +05:30 |
|
Nick Cameron
|
6cfeb1fa78
|
Merge pull request #2041 from osa1/match_arm_newline
[not ready] Implement match_arm_forces_newline option (#2039)
|
2017-10-27 15:17:03 +05:30 |
|
topecongiro
|
fa7d8de29f
|
Only read the trailing comma of outermost fn call
|
2017-10-27 16:41:31 +09:00 |
|
topecongiro
|
ab81011a5b
|
Force to use block for body of closure when it contains comment
|
2017-10-27 15:41:42 +09:00 |
|
Ömer Sinan Ağacan
|
abf8f43233
|
Implement match_arm_forces_newline option (#2039)
|
2017-10-26 20:20:36 +03:00 |
|
topecongiro
|
0d359eacd7
|
Cargo fmt
|
2017-10-18 22:23:25 +09:00 |
|
Seiichi Uchida
|
2bf4747c47
|
Take width of return type into account
|
2017-10-17 00:10:19 +09:00 |
|
Seiichi Uchida
|
dd5ed53930
|
Remove calling rewrite() against String
|
2017-10-07 22:01:44 +09:00 |
|
topecongiro
|
47cf912c2c
|
Use push_str() instead of write!()
|
2017-10-05 21:05:28 +09:00 |
|
topecongiro
|
fe69dde96b
|
Replace 'try_opt!' macro with a '?' operator
|
2017-10-05 20:50:19 +09:00 |
|
Nick Cameron
|
61043e64e0
|
Merge pull request #2019 from topecongiro/issue-2018
Break after '=' if a single line rhs exceeds max width
|
2017-10-05 17:30:45 +08:00 |
|
Nick Cameron
|
2abe119d88
|
Merge pull request #2017 from topecongiro/issue-1987
Format strings in attributes when `format_strings = true`
|
2017-10-05 17:27:17 +08:00 |
|