Skip to content

Commit 3a8521a

Browse files
committed
Relax the line length limit to 100
1 parent 714f302 commit 3a8521a

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

ci/style.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
//!
1717
//! * No trailing whitespace
1818
//! * No tabs
19-
//! * 80-character lines
19+
//! * 100-character lines
2020
//! * Specific module layout:
2121
//! 1. use directives
2222
//! 2. typedefs
@@ -122,8 +122,8 @@ fn check_style(file: &str, path: &Path, err: &mut Errors) {
122122
if line.contains("\t") {
123123
err.error(path, i, "tab character");
124124
}
125-
if line.len() > 80 && !(line.contains("https://") || line.contains("http://")) {
126-
err.error(path, i, "line longer than 80 chars");
125+
if line.len() > 100 && !(line.contains("https://") || line.contains("http://")) {
126+
err.error(path, i, "line longer than 100 chars");
127127
}
128128
if line.contains("#[cfg(") && line.contains(']') && !line.contains(" if ")
129129
&& !(line.contains("target_endian") ||

rustfmt.toml

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
max_width = 79
2-
comment_width = 79
3-
error_on_line_overflow = true
1+
error_on_line_overflow = true

0 commit comments

Comments
 (0)