From d8caf56dfc9eb3cdddff05b58b954a78cf1b9476 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 22 Nov 2019 21:52:06 +0300 Subject: Uniformalize naming --- crates/ra_syntax/src/ast/extensions.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_syntax') 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 { #[derive(Debug, Clone, PartialEq, Eq)] pub enum StructKind { + Record(ast::RecordFieldDefList), Tuple(ast::TupleFieldDefList), - Named(ast::RecordFieldDefList), Unit, } impl StructKind { fn from_node(node: &N) -> StructKind { if let Some(nfdl) = child_opt::<_, ast::RecordFieldDefList>(node) { - StructKind::Named(nfdl) + StructKind::Record(nfdl) } else if let Some(pfl) = child_opt::<_, ast::TupleFieldDefList>(node) { StructKind::Tuple(pfl) } else { -- cgit v1.2.3