remove Cancelable from nameres

This commit is contained in:
Aleksey Kladov 2019-01-15 19:15:01 +03:00
parent 18e9a710cd
commit 490112dea1
10 changed files with 52 additions and 66 deletions

View file

@ -134,11 +134,11 @@ impl Module {
}
/// Returns a `ModuleScope`: a set of items, visible in this module.
pub fn scope(&self, db: &impl HirDatabase) -> Cancelable<ModuleScope> {
pub fn scope(&self, db: &impl HirDatabase) -> ModuleScope {
self.scope_impl(db)
}
pub fn resolve_path(&self, db: &impl HirDatabase, path: &Path) -> Cancelable<PerNs<DefId>> {
pub fn resolve_path(&self, db: &impl HirDatabase, path: &Path) -> PerNs<DefId> {
self.resolve_path_impl(db, path)
}