mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Fix unnecessary braces warnings
This commit is contained in:
parent
2603a9e628
commit
52fd2c8e48
12 changed files with 73 additions and 73 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue