mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
make deps cancelable
This commit is contained in:
parent
61687b9db6
commit
b37fba7136
2 changed files with 3 additions and 3 deletions
|
@ -21,8 +21,8 @@ impl Crate {
|
|||
pub fn crate_id(&self) -> CrateId {
|
||||
self.crate_id
|
||||
}
|
||||
pub fn dependencies(&self, db: &impl HirDatabase) -> Vec<CrateDependency> {
|
||||
self.dependencies_impl(db)
|
||||
pub fn dependencies(&self, db: &impl HirDatabase) -> Cancelable<Vec<CrateDependency>> {
|
||||
Ok(self.dependencies_impl(db))
|
||||
}
|
||||
pub fn root_module(&self, db: &impl HirDatabase) -> Cancelable<Option<Module>> {
|
||||
self.root_module_impl(db)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue