Skip to content

Commit 8afe367

Browse files
committed
stabilise shorthand options
cc #1974
1 parent d726492 commit 8afe367

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/config/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,11 @@ create_config! {
110110

111111
// Options that can change the source code beyond whitespace/blocks (somewhat linty things)
112112
merge_derives: bool, true, true, "Merge multiple `#[derive(...)]` into a single one";
113-
use_try_shorthand: bool, false, false, "Replace uses of the try! macro by the ? shorthand";
113+
use_try_shorthand: bool, false, true, "Replace uses of the try! macro by the ? shorthand";
114+
use_field_init_shorthand: bool, false, true, "Use field initialization shorthand if possible";
115+
force_explicit_abi: bool, true, true, "Always print the abi for extern items";
114116
condense_wildcard_suffixes: bool, false, false, "Replace strings of _ wildcards by a single .. \
115117
in tuple patterns";
116-
force_explicit_abi: bool, true, true, "Always print the abi for extern items";
117-
use_field_init_shorthand: bool, false, false, "Use field initialization shorthand if possible";
118118

119119
// Control options (changes the operation of rustfmt, rather than the formatting)
120120
write_mode: WriteMode, WriteMode::Overwrite, false,

0 commit comments

Comments
 (0)