mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +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]
|
#[must_use]
|
||||||
pub fn advance(&self, offset: usize) -> State<'a> {
|
pub fn advance(&self, offset: usize) -> State<'a> {
|
||||||
let mut state = self.clone();
|
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.offset += offset;
|
||||||
state
|
state
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue