mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
remove ast::*Kind from ra_ide_api
This commit is contained in:
parent
3bec812258
commit
df6dce23a7
5 changed files with 19 additions and 21 deletions
|
@ -33,13 +33,11 @@ fn impls_for_def(
|
|||
node: &ast::NominalDef,
|
||||
module: hir::Module,
|
||||
) -> Option<Vec<NavigationTarget>> {
|
||||
let ty = match node.kind() {
|
||||
ast::NominalDefKind::StructDef(def) => {
|
||||
let ty = match node {
|
||||
ast::NominalDef::StructDef(def) => {
|
||||
source_binder::struct_from_module(db, module, &def).ty(db)
|
||||
}
|
||||
ast::NominalDefKind::EnumDef(def) => {
|
||||
source_binder::enum_from_module(db, module, &def).ty(db)
|
||||
}
|
||||
ast::NominalDef::EnumDef(def) => source_binder::enum_from_module(db, module, &def).ty(db),
|
||||
};
|
||||
|
||||
let krate = module.krate(db)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue