Uniformalize naming

This commit is contained in:
Aleksey Kladov 2019-11-22 21:52:06 +03:00
parent 4d49b5d174
commit d8caf56dfc
6 changed files with 17 additions and 22 deletions

View file

@ -55,7 +55,7 @@ impl FunctionSignature {
pub(crate) fn from_struct(db: &db::RootDatabase, st: hir::Struct) -> Option<Self> {
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<Self> {
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,
_ => (),
};