diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-11-24 16:06:58 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-11-24 16:06:58 +0000 |
commit | ac9ba5eb32073c16608acaa04324e7dc46d303d6 (patch) | |
tree | a88c9a76a24787c1eac988f318e938406a288677 /crates/ra_hir_def/src/adt.rs | |
parent | b0581c2403f49c68738c039065fa2cfc41345738 (diff) | |
parent | 434f108adad75b7c5e25db745a9f9fefa5cdaa31 (diff) |
Merge #2387
2387: Simplify r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_hir_def/src/adt.rs')
-rw-r--r-- | crates/ra_hir_def/src/adt.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_hir_def/src/adt.rs b/crates/ra_hir_def/src/adt.rs index 20e9a1eb5..a43f553aa 100644 --- a/crates/ra_hir_def/src/adt.rs +++ b/crates/ra_hir_def/src/adt.rs | |||
@@ -95,7 +95,7 @@ fn lower_enum( | |||
95 | name: var.name().map(|it| it.as_name()), | 95 | name: var.name().map(|it| it.as_name()), |
96 | variant_data: Arc::new(VariantData::new(var.kind())), | 96 | variant_data: Arc::new(VariantData::new(var.kind())), |
97 | }, | 97 | }, |
98 | ) | 98 | ); |
99 | } | 99 | } |
100 | } | 100 | } |
101 | 101 | ||
@@ -160,7 +160,7 @@ fn lower_struct( | |||
160 | name: Name::new_tuple_field(i), | 160 | name: Name::new_tuple_field(i), |
161 | type_ref: TypeRef::from_ast_opt(fd.type_ref()), | 161 | type_ref: TypeRef::from_ast_opt(fd.type_ref()), |
162 | }, | 162 | }, |
163 | ) | 163 | ); |
164 | } | 164 | } |
165 | StructKind::Tuple | 165 | StructKind::Tuple |
166 | } | 166 | } |
@@ -172,7 +172,7 @@ fn lower_struct( | |||
172 | name: fd.name().map(|n| n.as_name()).unwrap_or_else(Name::missing), | 172 | name: fd.name().map(|n| n.as_name()).unwrap_or_else(Name::missing), |
173 | type_ref: TypeRef::from_ast_opt(fd.ascribed_type()), | 173 | type_ref: TypeRef::from_ast_opt(fd.ascribed_type()), |
174 | }, | 174 | }, |
175 | ) | 175 | ); |
176 | } | 176 | } |
177 | StructKind::Record | 177 | StructKind::Record |
178 | } | 178 | } |