Skip to content

Commit

Permalink
Sync editorconfig and rustfmt (vercel#352)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jridgewell authored Sep 14, 2022
1 parent a9846db commit dc2fddd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ tab_width = 4
insert_final_newline = true
max_line_length = 120

[*.rs]
# Keep in sync with rustfmt
max_line_length = 100

[{*.markdown,*.md}]
max_line_length = 80

Expand Down
3 changes: 3 additions & 0 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Keep in sync with .editorconfig
max_width = 100

tab_spaces = 4
hard_tabs = false

Expand Down

0 comments on commit dc2fddd

Please sign in to comment.