mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
make source cancelable
This commit is contained in:
parent
b37fba7136
commit
1836f4db35
1 changed files with 2 additions and 2 deletions
|
@ -35,8 +35,8 @@ pub struct Module {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Module {
|
impl Module {
|
||||||
pub fn source(&self, db: &impl HirDatabase) -> (FileId, Option<ast::ModuleNode>) {
|
pub fn source(&self, db: &impl HirDatabase) -> Cancelable<(FileId, Option<ast::ModuleNode>)> {
|
||||||
self.source_impl(db)
|
Ok(self.source_impl(db))
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns the crate this module is part of.
|
/// Returns the crate this module is part of.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue