remove Cancelable from Module API, part 2

This commit is contained in:
Aleksey Kladov
2019-01-15 18:30:58 +03:00
parent ca52cf1ecd
commit c159e414b4
7 changed files with 28 additions and 33 deletions

View File

@@ -217,7 +217,7 @@ impl DefId {
/// Returns the containing crate.
pub fn krate(&self, db: &impl HirDatabase) -> Cancelable<Option<Crate>> {
Ok(self.module(db)?.krate(db)?)
Ok(self.module(db)?.krate(db))
}
/// Returns the containing impl block, if this is an impl item.