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_ide_api/src/display/function_signature.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_ide_api/src/display') diff --git a/crates/ra_ide_api/src/display/function_signature.rs b/crates/ra_ide_api/src/display/function_signature.rs index f42dffc87..d96de4e4c 100644 --- a/crates/ra_ide_api/src/display/function_signature.rs +++ b/crates/ra_ide_api/src/display/function_signature.rs @@ -55,7 +55,7 @@ impl FunctionSignature { pub(crate) fn from_struct(db: &db::RootDatabase, st: hir::Struct) -> Option { let node: ast::StructDef = st.source(db).value; match node.kind() { - ast::StructKind::Named(_) => return None, + ast::StructKind::Record(_) => return None, _ => (), }; @@ -89,7 +89,7 @@ impl FunctionSignature { ) -> Option { let node: ast::EnumVariant = variant.source(db).value; match node.kind() { - ast::StructKind::Named(_) | ast::StructKind::Unit => return None, + ast::StructKind::Record(_) | ast::StructKind::Unit => return None, _ => (), }; -- cgit v1.2.3