From aad542fd3e3f5f3184972f03522c6ab81d55830e Mon Sep 17 00:00:00 2001 From: aeon Date: Mon, 8 Apr 2024 01:35:47 +0800 Subject: [PATCH] Add "edition" and other options in rustfmt.toml --- rustfmt.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rustfmt.toml b/rustfmt.toml index 84c3617..973e900 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1,6 +1,9 @@ +edition = "2021" hard_tabs = false tab_spaces = 4 reorder_imports = true newline_style = "Unix" fn_call_width = 80 fn_params_layout = "Compressed" +imports_granularity = "Crate" +format_code_in_doc_comments = true