Skip to content

Commit a43ccb0

Browse files
committed
Disallow double trailing newlines in tidy
1 parent 7f0f0e3 commit a43ccb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/tidy/src/style.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ pub fn check(path: &Path, bad: &mut bool) {
159159
}
160160
match trailing_new_lines {
161161
0 => tidy_error!(bad, "{}: missing trailing newline", file.display()),
162-
1 | 2 => {}
162+
1 => {}
163163
n => tidy_error!(bad, "{}: too many trailing newlines ({})", file.display(), n),
164164
};
165165
})

0 commit comments

Comments
 (0)