Skip to content

Commit 86d61bd

Browse files
cjlongoriameta-codesync[bot]
authored andcommitted
update rustfmt.toml for projects
Summary: At the moment these rustfmt.toml files are ignored. Our formatting tool has an explicit rustfmt.toml passed to it that overrides anything set by the code owners. This diff updates the project's rustfmt.toml to match the one we explicitly set. This diff also copies our explicit config in `tools/rust/ossconfigs/rustfmt.toml` to `fbsource/.rustfmt.toml`. Reviewed By: dtolnay Differential Revision: D84118394 fbshipit-source-id: bbc931ffd89798d5b519a1b600f11a977ac55fc8
1 parent d6f2636 commit 86d61bd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

rustfmt.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1-
edition = "2018"
1+
# Get help on options with `rustfmt --help=config`
2+
# Please keep these in alphabetical order.
3+
edition = "2021"
4+
format_code_in_doc_comments = true
5+
group_imports = "StdExternalCrate"
6+
imports_granularity = "Item"
27
merge_derives = false
8+
style_edition = "2024"
39
use_field_init_shorthand = true

0 commit comments

Comments
 (0)