mirror of
https://github.com/facebook/sapling.git
synced 2024-10-05 14:28:17 +03:00
bafd80784e
Summary: The `group_imports = "StdExternalCrate"` config might be a bit controversial since some might prefer a single block. However, the only automated option by rustfmt is StdExternalCrate. The single block behavior isn't a choice. Forcing this makes the codebase a bit more consistent. Reviewed By: yancouto Differential Revision: D31746732 fbshipit-source-id: b3fc3a7ee20302ece585c8ac3c4f189b25bc1425
16 lines
465 B
TOML
16 lines
465 B
TOML
# Inherit from fbcode root
|
|
edition = "2018"
|
|
merge_derives = false
|
|
use_field_init_shorthand = true
|
|
|
|
# Project specific config.
|
|
# Note: fbcode rustfmt does not respect these configs! So they cannot conflict
|
|
# with fbcode format options (i.e. run fbcode rustfmt and the result isn't
|
|
# changing).
|
|
|
|
# To minimize conflicts, and make things easier to grep.
|
|
imports_granularity = "Item"
|
|
|
|
# To force an automatic order of use statements.
|
|
group_imports = "StdExternalCrate"
|