diff options
Diffstat (limited to 'crates/ra_ide_api/src/lib.rs')
-rw-r--r-- | crates/ra_ide_api/src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/lib.rs b/crates/ra_ide_api/src/lib.rs index 2b02dab2a..6155d903a 100644 --- a/crates/ra_ide_api/src/lib.rs +++ b/crates/ra_ide_api/src/lib.rs | |||
@@ -31,6 +31,7 @@ mod extend_selection; | |||
31 | mod hover; | 31 | mod hover; |
32 | mod call_info; | 32 | mod call_info; |
33 | mod syntax_highlighting; | 33 | mod syntax_highlighting; |
34 | mod parent_module; | ||
34 | 35 | ||
35 | use std::{fmt, sync::Arc}; | 36 | use std::{fmt, sync::Arc}; |
36 | 37 | ||
@@ -414,7 +415,7 @@ impl Analysis { | |||
414 | 415 | ||
415 | /// Returns a `mod name;` declaration which created the current module. | 416 | /// Returns a `mod name;` declaration which created the current module. |
416 | pub fn parent_module(&self, position: FilePosition) -> Cancelable<Vec<NavigationTarget>> { | 417 | pub fn parent_module(&self, position: FilePosition) -> Cancelable<Vec<NavigationTarget>> { |
417 | self.with_db(|db| db.parent_module(position))? | 418 | self.with_db(|db| parent_module::parent_module(db, position))? |
418 | } | 419 | } |
419 | 420 | ||
420 | /// Returns crates this file belongs too. | 421 | /// Returns crates this file belongs too. |