mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 23:04:49 +00:00
Re-enable debug_assert in State::advance
This commit is contained in:
parent
f22f96843e
commit
352c7979eb
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ impl<'a> State<'a> {
|
|||
#[must_use]
|
||||
pub fn advance(&self, offset: usize) -> State<'a> {
|
||||
let mut state = self.clone();
|
||||
// debug_assert!(!state.bytes[..offset].iter().any(|b| *b == b'\n'));
|
||||
debug_assert!(!state.bytes()[..offset].iter().any(|b| *b == b'\n'));
|
||||
state.offset += offset;
|
||||
state
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue