From f6f9c45fd847ea5840e0fa143a7c9973fa475fb5 Mon Sep 17 00:00:00 2001 From: Akshay Date: Sun, 23 Aug 2020 21:26:14 +0530 Subject: add formatting rules --- rustfmt.toml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 rustfmt.toml diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 0000000..e4b4984 --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1,15 @@ +max_width = 100 +hard_tabs = false +tab_spaces = 4 +newline_style = "Auto" +use_small_heuristics = "Default" +reorder_imports = true +reorder_modules = true +remove_nested_parens = true +fn_args_layout = "Tall" +edition = "2018" +merge_derives = true +use_try_shorthand = false +use_field_init_shorthand = false +force_explicit_abi = true + -- cgit v1.2.3