From 3671c8867acf24fd58c058f7f1d8c557b655dac4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20M=C3=A4rtens?= Date: Tue, 19 Nov 2019 15:11:13 +0100 Subject: [PATCH] change veloren code style --- .rustfmt.toml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .rustfmt.toml 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