this branch is unreachable

This commit is contained in:
2024-10-15 16:46:24 -04:00
parent 92f6d43fa0
commit 3fe7ba9a77

View File

@@ -245,10 +245,7 @@ impl<R: BufRead> Tokenizer<R> {
}))); })));
break; break;
} }
0 => { 0 => unreachable!(),
self.tokens.push_back(Err(TokenizeError::InvalidCharacter(c)));
return;
}
_ => { _ => {
let next = match iter.next_if(is_expected) { let next = match iter.next_if(is_expected) {
Some(c) => c, Some(c) => c,