mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
move crate for
This commit is contained in:
parent
842e8001b2
commit
bddd124298
3 changed files with 16 additions and 16 deletions
|
@ -342,7 +342,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| parent_module::crate_for(db, file_id))
|
||||
}
|
||||
|
||||
/// Returns the root file of the given crate.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue