aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/lib.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-02-08 10:50:18 +0000
committerAleksey Kladov <[email protected]>2019-02-08 11:34:30 +0000
commitbddd1242986f3155bdb1ca65495bc0623e3d211d (patch)
tree699b44c6bb2f4978430b3d84994f4f73897241ac /crates/ra_ide_api/src/lib.rs
parent842e8001b287b0e3d77215235ae96a3bd8944207 (diff)
move crate for
Diffstat (limited to 'crates/ra_ide_api/src/lib.rs')
-rw-r--r--crates/ra_ide_api/src/lib.rs2
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.