mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
adapt ide_api to the new API
This commit is contained in:
parent
4c514a3e02
commit
6a5a1f5902
4 changed files with 12 additions and 6 deletions
|
@ -40,7 +40,10 @@ pub(super) fn complete_path(acc: &mut Completions, ctx: &CompletionContext) {
|
|||
.add_to(acc)
|
||||
});
|
||||
}
|
||||
hir::ModuleDef::Function(_) | hir::ModuleDef::Struct(_) | hir::ModuleDef::Def(_) => return,
|
||||
hir::ModuleDef::Function(_)
|
||||
| hir::ModuleDef::Struct(_)
|
||||
| hir::ModuleDef::Def(_)
|
||||
| hir::ModuleDef::EnumVariant(_) => return,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue