sapling/rustfmt.toml
Siddharth Agarwal a05c88a442 add a couple of rustfmt configs for rustfmt-nightly 0.2.5
Summary:
These prevent most errors while running the new rustfmt against
Mononoke.

Reviewed By: jsgf

Differential Revision: D5760091

fbshipit-source-id: 42d73fd282bf3c9cf56db1138e4f63c4c4416c41
2017-09-05 17:28:34 -07:00

16 lines
563 B
TOML

# Run `rustfmt --config-help` to see available config options.
# Please keep these in alphabetical order.
closure_block_indent_threshold = 1
condense_wildcard_suffixes = true
error_on_line_overflow_comments = false
# Too many derives can cause line length limits to be exceeded. rustfmt-nightly
# 0.2.5 doesn't appear to pay attention to this.
merge_derives = false
reorder_imported_names = true
reorder_imports = true
reorder_imports_in_group = true
# Override the Nuclide/Atom default tab spacing.
tab_spaces = 4
use_try_shorthand = true
write_mode = "replace"