Skip to content

Commit

Permalink
Relax the line length limit to 100
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed Apr 6, 2021
1 parent 714f302 commit 3a8521a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions ci/style.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
//!
//! * No trailing whitespace
//! * No tabs
//! * 80-character lines
//! * 100-character lines
//! * Specific module layout:
//! 1. use directives
//! 2. typedefs
Expand Down Expand Up @@ -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") ||
Expand Down
4 changes: 1 addition & 3 deletions rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
max_width = 79
comment_width = 79
error_on_line_overflow = true
error_on_line_overflow = true

0 comments on commit 3a8521a

Please sign in to comment.