diff options
Diffstat (limited to 'crates/ra_ide_api/src/parent_module.rs')
-rw-r--r-- | crates/ra_ide_api/src/parent_module.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/crates/ra_ide_api/src/parent_module.rs b/crates/ra_ide_api/src/parent_module.rs index 566509849..4c57566e2 100644 --- a/crates/ra_ide_api/src/parent_module.rs +++ b/crates/ra_ide_api/src/parent_module.rs | |||
@@ -27,10 +27,7 @@ pub(crate) fn crate_for(db: &RootDatabase, file_id: FileId) -> Vec<CrateId> { | |||
27 | Some(it) => it, | 27 | Some(it) => it, |
28 | None => return Vec::new(), | 28 | None => return Vec::new(), |
29 | }; | 29 | }; |
30 | let krate = match module.krate(db) { | 30 | let krate = module.krate(); |
31 | Some(it) => it, | ||
32 | None => return Vec::new(), | ||
33 | }; | ||
34 | vec![krate.crate_id()] | 31 | vec![krate.crate_id()] |
35 | } | 32 | } |
36 | 33 | ||