From 60c414c85791d391b33f0a1643d06f172d8706ec Mon Sep 17 00:00:00 2001 From: Pascal Seitz Date: Tue, 11 Sep 2018 10:46:39 +0200 Subject: [PATCH] fixes #2914 by handling BadIssue case --- src/formatting.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/formatting.rs b/src/formatting.rs index a07cdcc8a1497..95dfdefd0e24a 100644 --- a/src/formatting.rs +++ b/src/formatting.rs @@ -271,6 +271,7 @@ impl FormattingError { ErrorKind::LineOverflow(found, max) => (max, found - max), ErrorKind::TrailingWhitespace | ErrorKind::DeprecatedAttr + | ErrorKind::BadIssue(_) | ErrorKind::BadAttr | ErrorKind::LostComment => { let trailing_ws_start = self