diff options
Diffstat (limited to 'crates/ra_analysis/src/lib.rs')
-rw-r--r-- | crates/ra_analysis/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_analysis/src/lib.rs b/crates/ra_analysis/src/lib.rs index feed44b2d..c8f846c56 100644 --- a/crates/ra_analysis/src/lib.rs +++ b/crates/ra_analysis/src/lib.rs | |||
@@ -401,7 +401,7 @@ impl Analysis { | |||
401 | } | 401 | } |
402 | /// Returns the root file of the given crate. | 402 | /// Returns the root file of the given crate. |
403 | pub fn crate_root(&self, crate_id: CrateId) -> Cancelable<FileId> { | 403 | pub fn crate_root(&self, crate_id: CrateId) -> Cancelable<FileId> { |
404 | Ok(self.db.crate_root(crate_id)) | 404 | Ok(self.db.crate_graph().crate_root(crate_id)) |
405 | } | 405 | } |
406 | /// Returns the set of possible targets to run for the current file. | 406 | /// Returns the set of possible targets to run for the current file. |
407 | pub fn runnables(&self, file_id: FileId) -> Cancelable<Vec<Runnable>> { | 407 | pub fn runnables(&self, file_id: FileId) -> Cancelable<Vec<Runnable>> { |