From 38c67cad817419c5f8f7b2c2cb90f3ac7cf5fd0b Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Tue, 9 Nov 2021 23:28:15 +0100 Subject: add rustfmt settings --- .rustfmt.toml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .rustfmt.toml diff --git a/.rustfmt.toml b/.rustfmt.toml new file mode 100644 index 0000000..aea0694 --- /dev/null +++ b/.rustfmt.toml @@ -0,0 +1,31 @@ +unstable_features = true +max_width = 80 +hard_tabs = false +tab_spaces = 4 +newline_style = "Unix" +use_small_heuristics = "Max" +reorder_imports = true +reorder_modules = true +edition = "2018" +merge_derives = true +use_field_init_shorthand = true +binop_separator = "Front" +combine_control_expr = true +condense_wildcard_suffixes = false +enum_discrim_align_threshold = 25 +fn_single_line = true +force_multiline_blocks = true +format_macro_matchers = true +format_strings = true +imports_indent = "Visual" +indent_style = "Block" +inline_attribute_width = 40 +match_arm_blocks = false +match_block_trailing_comma = true +imports_granularity= "Crate" +overflow_delimited_expr = true +reorder_impl_items = true +struct_field_align_threshold = 25 +struct_lit_single_line = true +where_single_line = true +brace_style = "AlwaysNextLine" -- cgit v1.2.3