rustfmt: update rustfmt config

Summary:
Update rustfmt config to match `tools/rust/ossconfigs/rustfmt.toml` used by
`arc lint`. This makes `cargo fmt` match `arc f`.

Reviewed By: zzl0

Differential Revision: D54201008

fbshipit-source-id: d74b5b36beb2a76de35f6fdb0eb02f31358d2034
This commit is contained in:
Jun Wu 2024-02-29 10:38:42 -08:00 committed by Facebook GitHub Bot
parent 5f3fa1ba26
commit 8e4d9af0ac

View File

@ -1,15 +1,8 @@
# Inherit from fbcode root
edition = "2018"
edition = "2021"
format_code_in_doc_comments = true
group_imports = "StdExternalCrate"
imports_granularity = "Item"
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"
version = "Two"