mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Uniformalize naming
This commit is contained in:
parent
4d49b5d174
commit
d8caf56dfc
6 changed files with 17 additions and 22 deletions
|
@ -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,
|
||||
_ => (),
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue