Rename StructDef -> Struct
This commit is contained in:
@@ -44,7 +44,7 @@ fn impls_for_def(
|
||||
krate: Crate,
|
||||
) -> Option<Vec<NavigationTarget>> {
|
||||
let ty = match node {
|
||||
ast::AdtDef::StructDef(def) => sema.to_def(def)?.ty(sema.db),
|
||||
ast::AdtDef::Struct(def) => sema.to_def(def)?.ty(sema.db),
|
||||
ast::AdtDef::EnumDef(def) => sema.to_def(def)?.ty(sema.db),
|
||||
ast::AdtDef::Union(def) => sema.to_def(def)?.ty(sema.db),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user