text_processing: remove invalid unreachable!()

memfd
Manos Pitsidianakis 2020-05-08 14:58:59 +03:00
parent d405aa9797
commit d915c4a7c8
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
1 changed files with 2 additions and 2 deletions

View File

@ -241,8 +241,8 @@ impl<'a> Iterator for LineBreakCandidateIter<'a> {
// Treat X (CM | ZWJ)* as if it were X.
// where X is any line break class except BK, CR, LF, NL, SP, or ZW.
/* Unreachable since we break lines based on graphemes, not characters */
unreachable!();
*pos += grapheme.len();
return self.next();
}
WJ => {
/*: LB11 Do not break before or after Word joiner and related characters.*/