about summary refs log tree commit diff
path: root/src/comment.rs
diff options
context:
space:
mode:
authorSeiichi Uchida <seuchida@gmail.com>2018-12-25 17:58:27 +0900
committerGitHub <noreply@github.com>2018-12-25 17:58:27 +0900
commite60f4bbea6f71c31332b3b776db30153eb0a0742 (patch)
tree3c43d3adc294e62b572b2836ebdc771d5e5bfc0b /src/comment.rs
parenta1ee7e956565c05b48586bf3379cdb0b2767c3c0 (diff)
parentd504a66076339a32e5b35de26020771b74564345 (diff)
Merge pull request #3269 from wada314/lc-unreachable
Remove a trivial redundant code.
Diffstat (limited to 'src/comment.rs')
-rw-r--r--src/comment.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comment.rs b/src/comment.rs
index 6f229414e0d..7d7f56f54a5 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() {