Skip to content

Commit

Permalink
Remove accidental panic in binary tape parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbabcock committed Oct 13, 2023
1 parent 56c9270 commit bebed49
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/binary/tape.rs
Original file line number Diff line number Diff line change
Expand Up @@ -624,9 +624,6 @@ impl<'a, 'b> ParserState<'a, 'b> {
state = ParseState::ObjectValue;
} else {
let len = self.token_tape.len();
if len == 0 {
panic!("EEEK");
}
unsafe { ptr.add(len).write(BinaryToken::MixedContainer) };
unsafe { ptr.add(len + 1).write(last) };
unsafe { ptr.add(len + 2).write(BinaryToken::Equal) };
Expand Down

0 comments on commit bebed49

Please sign in to comment.