parser: simplify parse_pat_with_or.

This commit is contained in:
Mazdak Farrokhzad 2019-08-18 16:55:52 +02:00
parent 5f57feec0a
commit f852c7ce1c

View File

@ -127,7 +127,7 @@ impl<'a> Parser<'a> {
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);