Apply clippy suggestion

This commit is contained in:
Jonas Platte 2019-09-27 23:58:05 +02:00
parent fb0f8a4d91
commit fbd8b2be54

View File

@ -215,20 +215,20 @@ impl Parse for RumaEventField {
.into_iter()
.collect();
Ok(RumaEventField::InlineStruct(FieldInlineStruct {
Ok(Self::InlineStruct(FieldInlineStruct {
attrs,
member,
colon_token,
fields,
}))
}
"content_type_alias" => Ok(RumaEventField::Block(FieldBlock {
"content_type_alias" => Ok(Self::Block(FieldBlock {
attrs: input.call(Attribute::parse_outer)?,
member: input.parse()?,
colon_token: input.parse()?,
typedef: input.parse()?,
})),
_ => Ok(RumaEventField::Value(input.parse()?)),
_ => Ok(Self::Value(input.parse()?)),
}
}
}