mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
Require explicit cloning of State
This commit is contained in:
parent
49818343dd
commit
2e85c19101
5 changed files with 27 additions and 28 deletions
|
@ -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)) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue