rust/src
topecongiro 92b54d6490 Add heuristic when rewriting chain with a single child
rustfmt splits chain into multiline when the length of chain exceeds
`chain_one_line_max`. However, currenly this rule only applies when the chain
has more than one child. This can lead to unexpected long chain if the parent
is long. This commit adds heuristic that if the length of parent is longer
than the half of `chain_one_line_max` we use multiline even if there is
only a single child.
2017-05-24 00:06:23 +09:00
..
bin Add --dump-default-config and --dump-minimal-config. 2017-05-18 12:56:49 +07:00
chains.rs Add heuristic when rewriting chain with a single child 2017-05-24 00:06:23 +09:00
checkstyle.rs Replace 'try!' with '?' 2017-05-08 13:14:23 +09:00
codemap.rs fallout - source reformatting 2017-03-28 11:14:47 +13:00
comment.rs Format source codes 2017-05-23 22:13:29 +09:00
config.rs Merge branch 'master' of https://github.com/rust-lang-nursery/rustfmt into config 2017-05-19 16:10:27 +07:00
expr.rs Format source codes 2017-05-23 22:13:29 +09:00
file_lines.rs Use unreachable!() instead of panic!(). 2017-05-18 11:09:11 +07:00
filemap.rs Switch to accessing config items via method. 2017-05-16 15:47:09 +07:00
imports.rs Switch to accessing config items via method. 2017-05-16 15:47:09 +07:00
issues.rs Format source codes 2017-05-15 22:55:45 +09:00
items.rs Format source codes 2017-05-23 22:13:29 +09:00
lib.rs Provide config.set().item(value) API. 2017-05-18 11:42:32 +07:00
lists.rs Format source codes 2017-05-23 11:37:33 +09:00
macros.rs Fix weird indentaion in chain 2017-05-23 11:37:12 +09:00
missed_spans.rs Format source codes 2017-05-23 11:37:33 +09:00
modules.rs Make list_files deterministic (Closes #1141) (#1393) 2017-03-22 09:00:33 +13:00
patterns.rs Format source codes 2017-05-23 11:37:33 +09:00
rewrite.rs Prevent rewriting closure block to expr inside macro 2017-05-13 18:32:25 +09:00
rustfmt_diff.rs test fallout 2017-03-28 11:25:59 +13:00
string.rs Switch to accessing config items via method. 2017-05-16 15:47:09 +07:00
summary.rs Show exit codes' meanings with the rustfmt help message 2017-04-19 00:25:48 +08:00
types.rs Format source codes 2017-05-23 22:13:29 +09:00
utils.rs Implement combining for tuple and block 2017-05-23 12:51:32 +09:00
visitor.rs Format source codes 2017-05-23 11:37:33 +09:00