Skip to content

Commit

Permalink
Change default newline style to "Native"
Browse files Browse the repository at this point in the history
Fixes #2626.
  • Loading branch information
fwalch committed Jul 2, 2018
1 parent 5e59925 commit 9d8f381
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Configurations.md
Expand Up @@ -1250,7 +1250,7 @@ fn main() {

Unix or Windows line endings

- **Default value**: `"Unix"`
- **Default value**: `"Native"`
- **Possible values**: `"Native"`, `"Unix"`, `"Windows"`
- **Stable**: Yes

Expand Down
2 changes: 1 addition & 1 deletion src/config/mod.rs
Expand Up @@ -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.";
Expand Down

0 comments on commit 9d8f381

Please sign in to comment.