diff options
Diffstat (limited to 'crates/ra_ide_api/src/lib.rs')
-rw-r--r-- | crates/ra_ide_api/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/lib.rs b/crates/ra_ide_api/src/lib.rs index 22a601ec8..bb60e8d40 100644 --- a/crates/ra_ide_api/src/lib.rs +++ b/crates/ra_ide_api/src/lib.rs | |||
@@ -342,7 +342,7 @@ impl Analysis { | |||
342 | 342 | ||
343 | /// Returns crates this file belongs too. | 343 | /// Returns crates this file belongs too. |
344 | pub fn crate_for(&self, file_id: FileId) -> Cancelable<Vec<CrateId>> { | 344 | pub fn crate_for(&self, file_id: FileId) -> Cancelable<Vec<CrateId>> { |
345 | self.with_db(|db| db.crate_for(file_id)) | 345 | self.with_db(|db| parent_module::crate_for(db, file_id)) |
346 | } | 346 | } |
347 | 347 | ||
348 | /// Returns the root file of the given crate. | 348 | /// Returns the root file of the given crate. |