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 |
|
Nick Cameron
|
2aa2d4ebe3
|
Merge pull request #2011 from topecongiro/rewrite_call_inner
Change return type of rewrite_call_inner() to Option<String>
|
2017-10-04 20:14:10 +08:00 |
|
Seiichi Uchida
|
1771dfca08
|
Break after '=' if a single line rhs exceeds max width
|
2017-10-01 21:20:15 +09:00 |
|
topecongiro
|
b74a0f960a
|
Implement StringFormat::new()
|
2017-10-01 19:39:00 +09:00 |
|
topecongiro
|
48ff9df8a4
|
Add rewrite_literal()
|
2017-10-01 19:29:23 +09:00 |
|
topecongiro
|
436a083fce
|
Change return type of rewrite_call_inner() to Option<String>
|
2017-09-28 16:33:30 +09:00 |
|
Badel2
|
28860000fe
|
Support ..= syntax
|
2017-09-27 22:36:56 +02:00 |
|
topecongiro
|
b12fecb631
|
Use horizontal layout for a function with a single argument
foo(long_arg)
instead of
foo(
long_arg,
)
|
2017-09-19 11:41:05 +09:00 |
|
topecongiro
|
b751030640
|
Remove unnecessary wrap_str()
|
2017-09-19 11:40:20 +09:00 |
|
Seiichi Uchida
|
32fa51a6a9
|
Move Spanned to spanned.rs from lib.rs
|
2017-09-19 10:04:35 +09:00 |
|
Seiichi Uchida
|
df7d2be562
|
Move Indent and Shape to shape.rs from lib.rs
|
2017-09-19 10:04:35 +09:00 |
|
Seiichi Uchida
|
18cd19673d
|
Remove wrap_str() from recover_comment_removed()
since we will be using the original snippet no matter what.
|
2017-09-18 23:30:59 +09:00 |
|
Seiichi Uchida
|
b02e813db7
|
Remove rewrite_call_with_binary_search()
|
2017-09-18 13:09:41 +09:00 |
|
Nick Cameron
|
d906ea23c7
|
Merge pull request #1968 from topecongiro/issue-1967
Reorder use items inside blocks
|
2017-09-18 12:59:25 +12:00 |
|
Nick Cameron
|
cccb7f681e
|
Merge pull request #1966 from topecongiro/string-to-cow
Refactoring: use Cow and etc.
|
2017-09-18 12:45:25 +12:00 |
|
Seiichi Uchida
|
8e5c76094d
|
Implement ptr_vec_to_ref_vec()
|
2017-09-15 22:27:20 +09:00 |
|
topecongiro
|
f0580ae91a
|
Use Cow to avoid unnecessary allocation
|
2017-09-15 18:21:06 +09:00 |
|
topecongiro
|
0b5d524486
|
Remove unnecessary references
|
2017-09-15 17:09:30 +09:00 |
|
topecongiro
|
d55b3492c0
|
Rename binop_sep to binop_separator
|
2017-09-15 15:05:41 +09:00 |
|
topecongiro
|
2d21c0c30b
|
Split after the colon of type ascription
|
2017-09-15 15:04:30 +09:00 |
|
topecongiro
|
f51261e93e
|
Cargo fmt
|
2017-09-15 12:10:58 +09:00 |
|
topecongiro
|
45e48ec424
|
Add a new config option to control the placement of a binary operator
|
2017-09-15 12:10:30 +09:00 |
|
Nick Cameron
|
dc9810e242
|
Merge pull request #1942 from topecongiro/fixes
Some Fixes
|
2017-09-05 10:52:41 +12:00 |
|
topecongiro
|
f8bdcd62e8
|
Do not allow single-lined closure with block body
|
2017-09-03 08:10:12 +09:00 |
|
topecongiro
|
737186b890
|
Use rewrite() instead of format_expr
|
2017-09-03 08:09:37 +09:00 |
|
Seiichi Uchida
|
68da44eb97
|
Avoid rewriting big block twice
|
2017-09-01 22:52:54 +09:00 |
|
Nick Cameron
|
59d1e84259
|
Merge pull request #1937 from topecongiro/enhance-macro-rewrite
Enhance macro rewrite
|
2017-08-31 17:43:52 +12:00 |
|
topecongiro
|
848d4559e1
|
Enhance macro rewrite
|
2017-08-31 13:52:13 +09:00 |
|
Seiichi Uchida
|
9d49bd22f0
|
Add explicit lifetime
|
2017-08-31 13:24:32 +09:00 |
|
Seiichi Uchida
|
4b79055a15
|
Apply refactoring from cargo clippy
|
2017-08-31 12:49:12 +09:00 |
|
Nick Cameron
|
39a91ba292
|
Fixup warnings and test formatting
|
2017-08-31 14:20:47 +12:00 |
|
Vadim Petrochenkov
|
6e5c6f5ba3
|
Use getters to access Span fields
|
2017-08-31 14:14:13 +12:00 |
|
topecongiro
|
5280583369
|
Format
|
2017-08-30 19:27:50 +09:00 |
|
topecongiro
|
979d131c5d
|
Format and preserve attributes on ast::Stmt
|
2017-08-30 19:27:36 +09:00 |
|
Alex Crichton
|
1577cefad5
|
Add support for Yield
|
2017-08-30 13:54:25 +12:00 |
|
topecongiro
|
6bbc6b54de
|
Refactor - remove duplicates
replacing some functions with recover_missing_comments() and
rewrite_missing_comments().
|
2017-08-28 00:13:42 +09:00 |
|