parser: simplify parse_pat_with_or
.
This commit is contained in:
parent
5f57feec0a
commit
f852c7ce1c
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ impl<'a> Parser<'a> {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
pats.push(self.parse_pat_with_range_pat(true, expected)?);
|
pats.push(self.parse_pat(expected)?);
|
||||||
}
|
}
|
||||||
let or_pattern_span = lo.to(self.prev_span);
|
let or_pattern_span = lo.to(self.prev_span);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue