Skip to content

Commit cf81440

Browse files
Add rustfmt config
1 parent 98f57ac commit cf81440

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

rustfmt.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Rustfmt is not fully used with this crate, as its formatting decreases
2+
# readability in too many places. Therefore formatting is disabled. This config
3+
# file exists for me to occasionally run `cargo fmt` and cherry pick changes.
4+
disable_all_formatting = true
5+
6+
blank_lines_upper_bound = 3
7+
group_imports = "StdExternalCrate"
8+
use_field_init_shorthand = true
9+
overflow_delimited_expr = true
10+
single_line_if_else_max_width = 60
11+
struct_lit_width = 70

0 commit comments

Comments
 (0)