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

@ -419,7 +419,7 @@ impl Analysis {
/// Returns crates this file belongs too.
pub fn crate_for(&self, file_id: FileId) -> Cancelable<Vec<CrateId>> {
self.with_db(|db| db.crate_for(file_id))?
self.with_db(|db| db.crate_for(file_id))
}
/// Returns the root file of the given crate.