sapling/eden/scm/.rustfmt.toml
Jun Wu bafd80784e rustfmt: set group_imports to StdExternalCrate
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
2021-10-19 11:07:24 -07:00

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"