Change default newline style to "Native"

Fixes #2626.
This commit is contained in:
Florian Walch 2018-07-02 23:16:17 +02:00
parent 5e5992517d
commit 9d8f3812cc
2 changed files with 2 additions and 2 deletions

View file

@ -1250,7 +1250,7 @@ fn main() {
Unix or Windows line endings
- **Default value**: `"Unix"`
- **Default value**: `"Native"`
- **Possible values**: `"Native"`, `"Unix"`, `"Windows"`
- **Stable**: Yes

View file

@ -40,7 +40,7 @@ create_config! {
max_width: usize, 100, true, "Maximum width of each line";
hard_tabs: bool, false, true, "Use tab characters for indentation, spaces for alignment";
tab_spaces: usize, 4, true, "Number of spaces per tab";
newline_style: NewlineStyle, NewlineStyle::Unix, true, "Unix or Windows line endings";
newline_style: NewlineStyle, NewlineStyle::Native, true, "Unix or Windows line endings";
use_small_heuristics: Heuristics, Heuristics::Default, true, "Whether to use different \
formatting for items and expressions if they satisfy a heuristic notion of 'small'.";
indent_style: IndentStyle, IndentStyle::Block, false, "How do we indent expressions or items.";