diff options
author | Yuki Okushi <jtitor@2k36.org> | 2021-04-06 09:55:52 +0900 |
---|---|---|
committer | Yuki Okushi <jtitor@2k36.org> | 2021-04-06 09:55:52 +0900 |
commit | 3a8521a7a1cf9aa9d401a0bb581b5d88917d3e7a (patch) | |
tree | f6835d29da204e34492b0b4e1c48d67f137be839 /ci/style.rs | |
parent | 714f302b929e1d1f8a0629bb5f36ba7ff86cfb1d (diff) | |
download | rust-libc-3a8521a7a1cf9aa9d401a0bb581b5d88917d3e7a.tar.gz |
Relax the line length limit to 100
Diffstat (limited to 'ci/style.rs')
-rw-r--r-- | ci/style.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ci/style.rs b/ci/style.rs index 813102bcac..b7e5d8ee8f 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") || |