1
Fork 0

remove some things that do not need to be

This commit is contained in:
Matthias Krüger 2024-04-07 17:59:11 +02:00
parent df7daa815f
commit f9ca213510
7 changed files with 10 additions and 18 deletions

View file

@ -3585,8 +3585,7 @@ impl<'a> Parser<'a> {
match self.expect_one_of(&[token::Comma], &[token::CloseDelim(close_delim)]) {
Ok(_) => {
if let Some(f) =
parsed_field.or_else(|guar| field_ident(self, guar).ok_or(guar)).ok()
if let Ok(f) = parsed_field.or_else(|guar| field_ident(self, guar).ok_or(guar))
{
// Only include the field if there's no parse error for the field name.
fields.push(f);