From 3a8521a7a1cf9aa9d401a0bb581b5d88917d3e7a Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Tue, 6 Apr 2021 09:55:52 +0900 Subject: [PATCH] Relax the line length limit to 100 --- ci/style.rs | 6 +++--- rustfmt.toml | 4 +--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/ci/style.rs b/ci/style.rs index 813102bc..b7e5d8ee 100644 --- a/ci/style.rs +++ b/ci/style.rs @@ -16,7 +16,7 @@ //! //! * No trailing whitespace //! * No tabs -//! * 80-character lines +//! * 100-character lines //! * Specific module layout: //! 1. use directives //! 2. typedefs @@ -122,8 +122,8 @@ fn check_style(file: &str, path: &Path, err: &mut Errors) { if line.contains("\t") { err.error(path, i, "tab character"); } - if line.len() > 80 && !(line.contains("https://") || line.contains("http://")) { - err.error(path, i, "line longer than 80 chars"); + if line.len() > 100 && !(line.contains("https://") || line.contains("http://")) { + err.error(path, i, "line longer than 100 chars"); } if line.contains("#[cfg(") && line.contains(']') && !line.contains(" if ") && !(line.contains("target_endian") || diff --git a/rustfmt.toml b/rustfmt.toml index 7ecc610f..dc85c994 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1,3 +1 @@ -max_width = 79 -comment_width = 79 -error_on_line_overflow = true \ No newline at end of file +error_on_line_overflow = true