Nick Cameron
8dd08ddd92
Merge pull request #2562 from topecongiro/issue-2196
...
Combine simple heuristics for function calls and array
2018-03-28 16:49:25 +02:00
Michael Noronha
faa9339e5d
/s/featuers/features
2018-03-26 22:40:39 -05:00
Seiichi Uchida
48424ea765
Update tests and cargo fmt
2018-03-26 07:38:39 +09:00
Nick Cameron
bf9f175336
reviewer comments and rebase fallout
2018-03-20 09:27:31 +13:00
Nick Cameron
50c95a074a
cargo fmt
2018-03-20 09:27:31 +13:00
topecongiro
3999d64f12
Simplify IgnoreList
2018-03-12 08:41:19 +09:00
Seiichi Uchida
84ad70c151
Add ignore config option
...
For example, with the following config file, rustfmt will ignore `src/types.rs`,
`src/foo/bar.rs` and every file under `examples/` directory.
```toml
[ignore]
files = [
"src/types.rs",
"src/foo/bar.rs",
]
directories = [
"examples",
]
```
2018-03-09 13:37:52 +09:00
David Lukes
53347bc226
Add license_template_path configuration snippet
2018-03-05 13:19:46 +01:00
topecongiro
34f6408ea2
Update Configurations.md
2018-02-23 21:55:16 +09:00
David Alber
7739cf8f46
Modifying reorder_extern_crates
example to show effect on groups
2018-02-19 22:32:44 -08:00
David Alber
00cab7e74c
Fixing the documentation for reorder_extern_crates_in_group
2018-02-19 22:32:44 -08:00
David Alber
73b13e0abe
Using shorter example for struct_lit_single_line
option
2018-02-18 23:17:36 -08:00
David Alber
f2bed291ba
Fixing command-line option name
2018-02-12 21:48:57 -08:00
David Alber
429dad72b6
Formatting snippets without configuration option marked as skip
2018-02-12 08:17:43 -08:00
David Alber
d4a518dc0a
Fixing control flow examples
2018-02-11 14:48:45 -08:00
Nick Cameron
b7f01769f9
Merge branch 'master' into init-shorthand
2018-02-01 15:20:01 +13:00
Seiichi Uchida
c9c346a89f
Add 'use_field_init_shorthand' config option
2018-01-29 22:15:20 +09:00
David Alber
476ec77fa3
Wrapping match_arm_blocks=false
snippet in function
2018-01-25 21:05:19 -08:00
David Alber
42efa7cc2f
Wrapping match_arm_blocks=true
snippet in function
2018-01-25 21:05:19 -08:00
David Alber
d27393528c
Fixing use_try_shorthand=true
snippet
2018-01-25 21:05:19 -08:00
David Alber
90c3ea716a
Fixing use_try_shorthand=false
snippet
2018-01-25 21:05:19 -08:00
David Alber
4315e3d968
Fixing type_punctuation_density=Compressed
snippet
2018-01-25 21:05:19 -08:00
David Alber
dab8f4991d
Fixing type_punctuation_density=Wide
snippet
2018-01-25 21:05:19 -08:00
David Alber
61630bc6f5
Wrapping trailing_comma=Never
snippet in function
2018-01-25 21:05:19 -08:00
David Alber
6c92808060
Wrapping trailing_comma=Always
snippet in function
2018-01-25 21:05:19 -08:00
David Alber
99ae6b8d1f
Wrapping trailing_comma=Vertical
snippet in function
2018-01-25 21:05:19 -08:00
David Alber
9d696a94e6
Fixing tab_spaces=2
snippet
2018-01-25 21:05:19 -08:00
David Alber
e5cdf0e9fd
Fixing tab_spaces=4
snippet
2018-01-25 21:05:19 -08:00
David Alber
fdd126a36e
Wrapping struct_lit_single_line=false
snippet in function
2018-01-25 21:05:19 -08:00
David Alber
33b5c3f9d5
Fixing spaces_within_parens_and_brackets=true
snippet
2018-01-25 21:05:19 -08:00
David Alber
9a9bb8564b
Fixing spaces_within_parens_and_brackets=false
snippet
2018-01-25 21:05:19 -08:00
David Alber
8d0497bf83
Fixing force_multiline_blocks=true
snippet
2018-01-25 21:02:18 -08:00
David Alber
f624f6b5a6
Fixing force_multiline_blocks=false
snippet
2018-01-25 21:02:18 -08:00
Seiichi Uchida
a19e1c0b83
Merge pull request #2369 from davidalber/fix-configuration-snippets
...
Fixing straightforward configuration snippets (Part 1)
2018-01-26 12:35:04 +09:00
David Alber
69f27673df
Extending spaces_around_ranges
to ranges in match arm patterns
2018-01-21 16:50:17 -08:00
David Alber
2afd1eada3
Wrapping match_block_trailing_comma=true
snippet in function
2018-01-16 08:12:32 -08:00
David Alber
44d2fcc2a0
Wrapping match_block_trailing_comma=false
snippet in function
2018-01-16 08:12:32 -08:00
David Alber
ee9bdeed7d
Fixing imports_layout="HorizontalVertical"
snippet
2018-01-16 08:12:32 -08:00
David Alber
e49314fccc
Fixing imports_layout="Mixed"
snippet
2018-01-16 08:12:32 -08:00
David Alber
c92a3b4066
Fixing imports_indent="Block"
snippet
2018-01-16 08:12:32 -08:00
David Alber
167ed92a24
Fixing imports_indent="Visual"
snippet
2018-01-16 08:12:32 -08:00
David Alber
df9cbb92bd
Fixing format_strings=true
snippet
2018-01-16 08:12:31 -08:00
David Alber
30f89c3063
Fixing format_strings=false
snippet
2018-01-16 08:12:31 -08:00
David Alber
ed90b2232f
Fixing where_single_line=true
snippet
2018-01-16 08:12:31 -08:00
David Alber
76947a68d3
Fixing where_single_line=false
snippet
2018-01-16 08:12:31 -08:00
David Alber
45deeee80f
Fixing brace_style="PreferSameLine"
structs and enums snippet
2018-01-16 08:12:31 -08:00
David Alber
034bd7a88e
Fixing brace_style="AlwaysNextLine"
structs and enums snippet
2018-01-16 08:12:31 -08:00
David Alber
4db479f637
Fixing brace_style="SameLineWhere"
structs and enums snippet
2018-01-16 08:12:31 -08:00
David Alber
514adeb156
Getting fn_args_density="Vertical"
snippet to pass
2018-01-16 08:12:31 -08:00
David Alber
7e7370756c
Wrapping control_brace_style="ClosingNextLine"
snippet in function
2018-01-16 08:12:31 -08:00