Use ThinVec in ast::ExprKind::Match.

This commit is contained in:
Nicholas Nethercote 2023-01-30 15:10:59 +11:00
parent 912b825002
commit 549f1c60af
8 changed files with 9 additions and 9 deletions

View file

@ -2566,7 +2566,7 @@ impl<'a> Parser<'a> {
}
let attrs = self.parse_inner_attributes()?;
let mut arms: Vec<Arm> = Vec::new();
let mut arms = ThinVec::new();
while self.token != token::CloseDelim(Delimiter::Brace) {
match self.parse_arm() {
Ok(arm) => arms.push(arm),