mirror of
https://github.com/facebook/sapling.git
synced 2024-12-26 06:21:48 +03:00
linter: use in-tree rustfmt binary for Rust formatting
Summary: Use rustfmt binaries committed to tools/third-party/rustfmt for formatting. Reviewed By: zertosh Differential Revision: D13166085 fbshipit-source-id: 2ba9568c3f463740b3e48b72196ef7c716e20784
This commit is contained in:
parent
8f2e32c7b8
commit
75db1ea8bf
14
rustfmt.toml
14
rustfmt.toml
@ -1,15 +1,9 @@
|
||||
# Run `rustfmt --config-help` to see available config options.
|
||||
# Get help on options with `rustfmt --help=config`
|
||||
# Please keep these in alphabetical order.
|
||||
condense_wildcard_suffixes = true
|
||||
error_on_line_overflow = false
|
||||
error_on_unformatted = 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.
|
||||
# Prefer to keep builtin and custom derives separate
|
||||
merge_derives = false
|
||||
reorder_imported_names = true
|
||||
reorder_imports = true
|
||||
reorder_imports_in_group = true
|
||||
# Override the Nuclide/Atom default tab spacing.
|
||||
reorder_modules = true
|
||||
tab_spaces = 4
|
||||
use_field_init_shorthand = true
|
||||
use_try_shorthand = true
|
||||
write_mode = "replace"
|
||||
|
Loading…
Reference in New Issue
Block a user