From dc2fddd07812007ba358aaa1c55ccd44a562453b Mon Sep 17 00:00:00 2001 From: Justin Ridgewell Date: Wed, 14 Sep 2022 14:09:59 -0400 Subject: [PATCH] Sync editorconfig and rustfmt (#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. --- .editorconfig | 4 ++++ .rustfmt.toml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/.editorconfig b/.editorconfig index dc692d132c225..d038d42ff93e6 100644 --- a/.editorconfig +++ b/.editorconfig @@ -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 diff --git a/.rustfmt.toml b/.rustfmt.toml index bfa4c94ed8622..c4e4d348c3510 100644 --- a/.rustfmt.toml +++ b/.rustfmt.toml @@ -1,3 +1,6 @@ +# Keep in sync with .editorconfig +max_width = 100 + tab_spaces = 4 hard_tabs = false