aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_analysis/src/hir/module/imp.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_analysis/src/hir/module/imp.rs')
-rw-r--r--crates/ra_analysis/src/hir/module/imp.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ra_analysis/src/hir/module/imp.rs b/crates/ra_analysis/src/hir/module/imp.rs
index 3b1baff76..d51ca2d59 100644
--- a/crates/ra_analysis/src/hir/module/imp.rs
+++ b/crates/ra_analysis/src/hir/module/imp.rs
@@ -8,7 +8,6 @@ use relative_path::RelativePathBuf;
8use rustc_hash::{FxHashMap, FxHashSet}; 8use rustc_hash::{FxHashMap, FxHashSet};
9 9
10use crate::{ 10use crate::{
11 db,
12 hir::HirDatabase, 11 hir::HirDatabase,
13 input::{SourceRoot, SourceRootId}, 12 input::{SourceRoot, SourceRootId},
14 Cancelable, FileId, FileResolverImp, 13 Cancelable, FileId, FileResolverImp,
@@ -52,7 +51,7 @@ pub(crate) fn module_tree(
52 db: &impl HirDatabase, 51 db: &impl HirDatabase,
53 source_root: SourceRootId, 52 source_root: SourceRootId,
54) -> Cancelable<Arc<ModuleTree>> { 53) -> Cancelable<Arc<ModuleTree>> {
55 db::check_canceled(db)?; 54 db.check_canceled()?;
56 let res = create_module_tree(db, source_root)?; 55 let res = create_module_tree(db, source_root)?;
57 Ok(Arc::new(res)) 56 Ok(Arc::new(res))
58} 57}