mirror of
https://github.com/facebook/sapling.git
synced 2024-10-04 22:07:44 +03:00
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:
parent
5f3fa1ba26
commit
8e4d9af0ac
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user