diff options
author | Laurențiu Nicola <[email protected]> | 2020-04-06 15:21:33 +0100 |
---|---|---|
committer | Laurențiu Nicola <[email protected]> | 2020-04-06 15:21:33 +0100 |
commit | 52fd2c8e4858c548195edceb83c02437d2d28ee5 (patch) | |
tree | 344f7bd6402f3bd846b437c1a8cfc6165881492d /crates/ra_hir_expand/src | |
parent | 2603a9e628d304c8cb8fd08979e2f9c9afeac69e (diff) |
Fix unnecessary braces warnings
Diffstat (limited to 'crates/ra_hir_expand/src')
-rw-r--r-- | crates/ra_hir_expand/src/builtin_derive.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_hir_expand/src/builtin_derive.rs b/crates/ra_hir_expand/src/builtin_derive.rs index 79aea5806..bb45b0f1d 100644 --- a/crates/ra_hir_expand/src/builtin_derive.rs +++ b/crates/ra_hir_expand/src/builtin_derive.rs | |||
@@ -73,9 +73,9 @@ fn parse_adt(tt: &tt::Subtree) -> Result<BasicAdtInfo, mbe::ExpandError> { | |||
73 | let node = item.syntax(); | 73 | let node = item.syntax(); |
74 | let (name, params) = match_ast! { | 74 | let (name, params) = match_ast! { |
75 | match node { | 75 | match node { |
76 | ast::StructDef(it) => { (it.name(), it.type_param_list()) }, | 76 | ast::StructDef(it) => (it.name(), it.type_param_list()), |
77 | ast::EnumDef(it) => { (it.name(), it.type_param_list()) }, | 77 | ast::EnumDef(it) => (it.name(), it.type_param_list()), |
78 | ast::UnionDef(it) => { (it.name(), it.type_param_list()) }, | 78 | ast::UnionDef(it) => (it.name(), it.type_param_list()), |
79 | _ => { | 79 | _ => { |
80 | debug!("unexpected node is {:?}", node); | 80 | debug!("unexpected node is {:?}", node); |
81 | return Err(mbe::ExpandError::ConversionError) | 81 | return Err(mbe::ExpandError::ConversionError) |