diff options
Diffstat (limited to 'crates/ra_syntax')
-rw-r--r-- | crates/ra_syntax/src/ast/extensions.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/ast/extensions.rs b/crates/ra_syntax/src/ast/extensions.rs index 4851dacb2..513ed7920 100644 --- a/crates/ra_syntax/src/ast/extensions.rs +++ b/crates/ra_syntax/src/ast/extensions.rs | |||
@@ -178,15 +178,15 @@ impl ast::ImplBlock { | |||
178 | 178 | ||
179 | #[derive(Debug, Clone, PartialEq, Eq)] | 179 | #[derive(Debug, Clone, PartialEq, Eq)] |
180 | pub enum StructKind { | 180 | pub enum StructKind { |
181 | Record(ast::RecordFieldDefList), | ||
181 | Tuple(ast::TupleFieldDefList), | 182 | Tuple(ast::TupleFieldDefList), |
182 | Named(ast::RecordFieldDefList), | ||
183 | Unit, | 183 | Unit, |
184 | } | 184 | } |
185 | 185 | ||
186 | impl StructKind { | 186 | impl StructKind { |
187 | fn from_node<N: AstNode>(node: &N) -> StructKind { | 187 | fn from_node<N: AstNode>(node: &N) -> StructKind { |
188 | if let Some(nfdl) = child_opt::<_, ast::RecordFieldDefList>(node) { | 188 | if let Some(nfdl) = child_opt::<_, ast::RecordFieldDefList>(node) { |
189 | StructKind::Named(nfdl) | 189 | StructKind::Record(nfdl) |
190 | } else if let Some(pfl) = child_opt::<_, ast::TupleFieldDefList>(node) { | 190 | } else if let Some(pfl) = child_opt::<_, ast::TupleFieldDefList>(node) { |
191 | StructKind::Tuple(pfl) | 191 | StructKind::Tuple(pfl) |
192 | } else { | 192 | } else { |