Skip to content

Commit 37a5a5f

Browse files
committed
check in the rustfmt file
1 parent 0ad1706 commit 37a5a5f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

rustfmt.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Based on
2+
# https://github.com/rust-lang/rustfmt/blob/rustfmt-1.4.19/Configurations.md
3+
4+
# Stable
5+
edition = "2018"
6+
fn_args_layout = "Compressed"
7+
max_width = 80
8+
tab_spaces = 2
9+
use_field_init_shorthand = true
10+
use_try_shorthand = true
11+
use_small_heuristics = "Max"
12+
13+
# Unstable
14+
format_code_in_doc_comments = true
15+
merge_imports = true
16+
wrap_comments = true

0 commit comments

Comments
 (0)