Skip to content

Commit dc2fddd

Browse files
authored
Sync editorconfig and rustfmt (vercel#352)
I'm using the [default](https://rust-lang.github.io/rustfmt/?version=v1.5.1&search=#max_width) `100` line length from rustfmt, but making it explicit.
1 parent a9846db commit dc2fddd

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ tab_width = 4
1111
insert_final_newline = true
1212
max_line_length = 120
1313

14+
[*.rs]
15+
# Keep in sync with rustfmt
16+
max_line_length = 100
17+
1418
[{*.markdown,*.md}]
1519
max_line_length = 80
1620

.rustfmt.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Keep in sync with .editorconfig
2+
max_width = 100
3+
14
tab_spaces = 4
25
hard_tabs = false
36

0 commit comments

Comments
 (0)