about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvarkor <github@varkor.com>2019-04-22 16:56:47 +0100
committervarkor <github@varkor.com>2019-04-22 16:57:01 +0100
commita43ccb0b9b8b95607b10daaa18e2341f2615a729 (patch)
treec9b985aae7ca6a479d7dddad6b75c6f1cdea5cb0
parent7f0f0e31ecceacfc627440216e559b9625378ecc (diff)
downloadrust-a43ccb0b9b8b95607b10daaa18e2341f2615a729.tar.gz
rust-a43ccb0b9b8b95607b10daaa18e2341f2615a729.zip
Disallow double trailing newlines in tidy
-rw-r--r--src/tools/tidy/src/style.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/tidy/src/style.rs b/src/tools/tidy/src/style.rs
index a4321cd7571..eeddddfb5de 100644
--- a/src/tools/tidy/src/style.rs
+++ b/src/tools/tidy/src/style.rs
@@ -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),
         };
     })