Disallow double trailing newlines in tidy

This commit is contained in:
varkor 2019-04-22 16:56:47 +01:00
parent 7f0f0e31ec
commit a43ccb0b9b

View file

@ -159,7 +159,7 @@ pub fn check(path: &Path, bad: &mut bool) {
}
match trailing_new_lines {
0 => tidy_error!(bad, "{}: missing trailing newline", file.display()),
1 | 2 => {}
1 => {}
n => tidy_error!(bad, "{}: too many trailing newlines ({})", file.display(), n),
};
})