Require explicit cloning of State

This commit is contained in:
Joshua Warner 2021-12-16 17:13:58 -08:00
parent 49818343dd
commit 2e85c19101
5 changed files with 27 additions and 28 deletions

View file

@ -140,7 +140,7 @@ macro_rules! advance_state {
}
pub fn parse_ident<'a>(arena: &'a Bump, state: State<'a>) -> ParseResult<'a, Ident<'a>, EExpr<'a>> {
let initial = state;
let initial = state.clone();
match parse_ident_help(arena, state) {
Ok((progress, ident, state)) => {