adapt ide_api to the new API

This commit is contained in:
Aleksey Kladov 2019-01-24 23:36:16 +03:00
parent 4c514a3e02
commit 6a5a1f5902
4 changed files with 12 additions and 6 deletions

View file

@ -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,
};
}