Remove debug_assert that may legally check a false value

This may be false e.g. in the presence of a multiline string. Since the
parser is in a more stable state than when this was introduced, I think
this is OK to remove.

Closes #2398
This commit is contained in:
ayazhafiz 2022-01-29 23:57:24 -05:00
parent 8ae2d9d407
commit 84f8152514

View file

@ -45,7 +45,6 @@ impl<'a> State<'a> {
#[must_use]
pub(crate) fn advance(&self, offset: usize) -> State<'a> {
let mut state = self.clone();
debug_assert!(!state.bytes()[..offset].iter().any(|b| *b == b'\n'));
state.offset += offset;
state
}