Nick Cameron
|
fc52a4d33f
|
Merge pull request #2173 from topecongiro/assignment-with-100-chars
Assignment whose lhs has 100 chars
|
2017-12-11 17:04:41 +13:00 |
|
Nick Cameron
|
0c9b2b402e
|
Merge pull request #2267 from topecongiro/issue-2264
Remove block() and block_only() wherever possible
|
2017-12-11 09:02:16 +13:00 |
|
Seiichi Uchida
|
b29a3afb96
|
Fix indentation in multi lined pattern
|
2017-12-10 23:54:34 +09:00 |
|
Seiichi Uchida
|
a7060f9fdf
|
Remove excessive block() and block_only()
Since we now use the same indent style for every expressions, these safe guards
can be removed.
|
2017-12-10 23:39:09 +09:00 |
|
Seiichi Uchida
|
e3d2f2c2b1
|
Cargo fmt
|
2017-12-10 21:54:26 +09:00 |
|
Nick Cameron
|
97fd517593
|
Merge pull request #2247 from topecongiro/optimize-snippet
Optimize snippet()
|
2017-12-08 20:39:01 +13:00 |
|
Seiichi Uchida
|
3ebe054362
|
Replace into() on &str with to_owned()
|
2017-12-08 13:07:42 +09:00 |
|
Seiichi Uchida
|
23fa0bc3ef
|
Merge pull request #2240 from davidalber/revisit-2219
Adding `print!` to the list of specially-formatted `format!`-like macros
|
2017-12-07 17:37:01 +09:00 |
|
David Alber
|
0f561a1447
|
Moving panic! into the list of macros from the Standard Library
|
2017-12-06 22:23:02 -08:00 |
|
Seiichi Uchida
|
c0eb8c3212
|
Add FmtVisitor::from_context()
|
2017-12-07 13:57:54 +09:00 |
|
Seiichi Uchida
|
7c4a84751f
|
Convert '&str' into 'String' whenever necessary
|
2017-12-07 13:57:52 +09:00 |
|
Seiichi Uchida
|
69a15b2eee
|
Update FmtVisitor::from_codemap()
|
2017-12-06 22:51:52 +09:00 |
|
Nick Cameron
|
b07e4339f0
|
Merge pull request #2221 from topecongiro/rfc/blank-lines
Keep vertical spaces between items or statements within range
|
2017-12-06 15:52:19 +13:00 |
|
David Alber
|
eb42956e84
|
Adding print! specially-formatted format! -like macros list
This commit corrects what appears to be an accidental inclusion of
`panic!` twice in the list resulting from the union of ffbe52e and
aeb3398.
|
2017-12-05 16:56:56 -08:00 |
|
Seiichi Uchida
|
228578b9c7
|
Add count_newlines() utility function
|
2017-12-05 15:17:40 +09:00 |
|
topecongiro
|
1684df6a0a
|
Compress an array with simple items
|
2017-12-04 12:07:06 +09:00 |
|
topecongiro
|
8cf99b1d90
|
Factor out array_tactic
|
2017-12-04 12:06:46 +09:00 |
|
Seiichi Uchida
|
aeb33986b1
|
Add macros from the log crate to whitelist
|
2017-12-03 11:37:55 +09:00 |
|
topecongiro
|
8f395bd953
|
Cargo fmt
|
2017-12-03 11:34:18 +09:00 |
|
topecongiro
|
27a540db47
|
Factor out a mess
|
2017-12-03 11:34:18 +09:00 |
|
topecongiro
|
16184d3e16
|
Cargo fmt and update a test
|
2017-12-03 11:34:18 +09:00 |
|
topecongiro
|
0f5dcc665d
|
Handle special-case macros
|
2017-12-03 11:34:18 +09:00 |
|
topecongiro
|
ffbe52eb76
|
Add whitelists of macros that need special-case format
|
2017-12-03 11:34:18 +09:00 |
|
Nick Cameron
|
8f6b6c28f7
|
Merge pull request #2210 from topecongiro/issue-2178
Combine a short callee and a single argument
|
2017-12-01 15:02:16 +13:00 |
|
Nick Cameron
|
db81a7f669
|
Merge pull request #2216 from topecongiro/issue-2214
Preserve trailing comma on array inside macro call
|
2017-12-01 12:18:38 +13:00 |
|
Nick Cameron
|
c18ba569df
|
Merge pull request #1889 from topecongiro/match-arm
Do not put if on the same line as match arm
|
2017-12-01 11:56:01 +13:00 |
|
topecongiro
|
b33df45d04
|
Look for trailing comma on array and preserve it inside macro call
|
2017-11-30 22:14:06 +09:00 |
|
topecongiro
|
65cb9b4649
|
Generalize rewrite_array() to types other than ast::Expr
|
2017-11-30 22:13:28 +09:00 |
|
Seiichi Uchida
|
8116e3491d
|
Cargo fmt & update a test
|
2017-11-30 18:07:10 +09:00 |
|
topecongiro
|
22c9025027
|
Format source codes
|
2017-11-30 18:00:49 +09:00 |
|
topecongiro
|
89bf00986d
|
Do not put if on the same line as match arm
|
2017-11-30 17:56:29 +09:00 |
|
Oliver Schneider
|
9667cc2484
|
Address clippy lints
|
2017-11-30 09:24:10 +01:00 |
|
topecongiro
|
39d85b0d41
|
Combine a sigle argument and a short callee
|
2017-11-30 15:00:32 +09:00 |
|
Seiichi Uchida
|
f99b775de7
|
Rename is_dummy to has_braces
|
2017-11-30 06:40:29 +09:00 |
|
Seiichi Uchida
|
1323abf93f
|
Fix a typo
|
2017-11-30 06:13:42 +09:00 |
|
Seiichi Uchida
|
b5e4c99ca7
|
Use an explicit flag to decide on whether to add brace compensation
|
2017-11-30 06:12:32 +09:00 |
|
Seiichi Uchida
|
54f3c21a2f
|
Fix a typo
|
2017-11-30 04:56:19 +09:00 |
|
topecongiro
|
8b53d7806c
|
Cargo fmt
|
2017-11-29 17:37:51 +09:00 |
|
topecongiro
|
af663d8f62
|
Ignore fn_call_width when rewriting a call with a single non-call arg
|
2017-11-29 17:36:51 +09:00 |
|
topecongiro
|
94a770a777
|
Use correct shape when rewriting the last arg with overflowing
|
2017-11-29 17:32:31 +09:00 |
|
Nick Cameron
|
9a33255834
|
Rename wrap_match_arms to match_arm_blocks
|
2017-11-27 17:35:27 +13:00 |
|
Nick Cameron
|
8f4d85a9d7
|
Merge multiline_closure_forces_block and multiline_match_arm_forces_block into force_multiline_block
|
2017-11-27 17:03:54 +13:00 |
|
Nick Cameron
|
087f8b5854
|
Remove match_arm_forces_newline
|
2017-11-27 16:31:49 +13:00 |
|
Nick Cameron
|
0e1fa2c244
|
Remove indent_match_arms
|
2017-11-27 15:49:14 +13:00 |
|
Nick Cameron
|
abfa4a1473
|
Merge pull request #2184 from topecongiro/issue-2179
Put rhs on the same line as lhs if putting rhs on next line exceeds max width
|
2017-11-24 20:19:12 +13:00 |
|
Nick Cameron
|
dd1fbca99a
|
Replace various small width heuristics with a single option
Closes #1984
|
2017-11-24 20:17:06 +13:00 |
|
topecongiro
|
e6ce65b214
|
Put rhs on the same line as lhs if putting rhs on next line exceeds max width
|
2017-11-24 12:05:02 +09:00 |
|
Nick Cameron
|
45d4f7a2dd
|
struct_lit_multiline_style -> struct_lit_single_line (and make it a bool)
|
2017-11-24 14:45:18 +13:00 |
|
Nick Cameron
|
4cb474b5ee
|
Remove force_format_strings in favour of format_strings
|
2017-11-24 14:07:37 +13:00 |
|
Nick Cameron
|
8a7b6b8806
|
Remove match_pattern_separator_break_point in favour of binop_separator
|
2017-11-24 14:01:44 +13:00 |
|