diff --git a/.rustfmt.toml b/.rustfmt.toml new file mode 100644 index 0000000000..f9caff8da5 --- /dev/null +++ b/.rustfmt.toml @@ -0,0 +1,17 @@ +hard_tabs = false +version = "Two" + +format_code_in_doc_comments = true +format_strings = true +wrap_comments = true +normalize_doc_attributes = true + +use_try_shorthand = true +reorder_impl_items = true + +fn_single_line = true +inline_attribute_width = 50 +match_block_trailing_comma = true +merge_imports = true +overflow_delimited_expr = true +use_field_init_shorthand = true