diff options
author | Aleksey Kladov <[email protected]> | 2019-11-22 18:52:06 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-11-22 18:52:06 +0000 |
commit | d8caf56dfc9eb3cdddff05b58b954a78cf1b9476 (patch) | |
tree | 0accd61a43762a6a34ae046ef6e23c3f7a930910 /crates/ra_syntax/src/ast | |
parent | 4d49b5d174430feede9833c5e66c39ee41b5fa3e (diff) |
Uniformalize naming
Diffstat (limited to 'crates/ra_syntax/src/ast')
-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 { |