Use ThinVec
in ast::ExprKind::Match
.
This commit is contained in:
parent
912b825002
commit
549f1c60af
8 changed files with 9 additions and 9 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue