Merge pull request #3269 from wada314/lc-unreachable

Remove a trivial redundant code.
This commit is contained in:
Seiichi Uchida 2018-12-25 17:58:27 +09:00 committed by GitHub
commit e60f4bbea6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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() {