Fix unnecessary braces warnings
This commit is contained in:
@@ -73,9 +73,9 @@ fn parse_adt(tt: &tt::Subtree) -> Result<BasicAdtInfo, mbe::ExpandError> {
|
||||
let node = item.syntax();
|
||||
let (name, params) = match_ast! {
|
||||
match node {
|
||||
ast::StructDef(it) => { (it.name(), it.type_param_list()) },
|
||||
ast::EnumDef(it) => { (it.name(), it.type_param_list()) },
|
||||
ast::UnionDef(it) => { (it.name(), it.type_param_list()) },
|
||||
ast::StructDef(it) => (it.name(), it.type_param_list()),
|
||||
ast::EnumDef(it) => (it.name(), it.type_param_list()),
|
||||
ast::UnionDef(it) => (it.name(), it.type_param_list()),
|
||||
_ => {
|
||||
debug!("unexpected node is {:?}", node);
|
||||
return Err(mbe::ExpandError::ConversionError)
|
||||
|
||||
Reference in New Issue
Block a user