Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit d504a66

Browse files
committed
Remove a trivial redundant code.
self.base.peek().is_none() case is already catched by the line above.
1 parent a1ee7e9 commit d504a66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/comment.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1301,7 +1301,7 @@ impl<'a> Iterator for LineClasses<'a> {
13011301

13021302
let start_class = match self.base.peek() {
13031303
Some((kind, _)) => *kind,
1304-
None => FullCodeCharKind::Normal,
1304+
None => unreachable!(),
13051305
};
13061306

13071307
while let Some((kind, c)) = self.base.next() {

0 commit comments

Comments
 (0)