Skip to content

Commit 714f302

Browse files
committed
Allow long comments containing a link
1 parent 703924f commit 714f302

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ci/style.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ 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 {
125+
if line.len() > 80 && !(line.contains("https://") || line.contains("http://")) {
126126
err.error(path, i, "line longer than 80 chars");
127127
}
128128
if line.contains("#[cfg(") && line.contains(']') && !line.contains(" if ")

0 commit comments

Comments
 (0)