aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/ra_hir/src/code_model_api.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir/src/code_model_api.rs b/crates/ra_hir/src/code_model_api.rs
index f1e891722..6bbc80e17 100644
--- a/crates/ra_hir/src/code_model_api.rs
+++ b/crates/ra_hir/src/code_model_api.rs
@@ -35,8 +35,8 @@ pub struct Module {
35} 35}
36 36
37impl Module { 37impl Module {
38 pub fn source(&self, db: &impl HirDatabase) -> (FileId, Option<ast::ModuleNode>) { 38 pub fn source(&self, db: &impl HirDatabase) -> Cancelable<(FileId, Option<ast::ModuleNode>)> {
39 self.source_impl(db) 39 Ok(self.source_impl(db))
40 } 40 }
41 41
42 /// Returns the crate this module is part of. 42 /// Returns the crate this module is part of.