From d504a66076339a32e5b35de26020771b74564345 Mon Sep 17 00:00:00 2001 From: Shohei Wada Date: Mon, 24 Dec 2018 17:48:42 +0900 Subject: [PATCH] Remove a trivial redundant code. self.base.peek().is_none() case is already catched by the line above. --- src/comment.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/comment.rs b/src/comment.rs index 6f229414e0d6..7d7f56f54a5e 100644 --- a/src/comment.rs +++ b/src/comment.rs @@ -1301,7 +1301,7 @@ impl<'a> Iterator for LineClasses<'a> { let start_class = match self.base.peek() { Some((kind, _)) => *kind, - None => FullCodeCharKind::Normal, + None => unreachable!(), }; while let Some((kind, c)) = self.base.next() {