mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
fix tests
This commit is contained in:
parent
8a5f74a24f
commit
dda916bc4d
8 changed files with 108 additions and 98 deletions
|
@ -31,6 +31,7 @@ mod extend_selection;
|
|||
mod hover;
|
||||
mod call_info;
|
||||
mod syntax_highlighting;
|
||||
mod parent_module;
|
||||
|
||||
use std::{fmt, sync::Arc};
|
||||
|
||||
|
@ -414,7 +415,7 @@ impl Analysis {
|
|||
|
||||
/// Returns a `mod name;` declaration which created the current module.
|
||||
pub fn parent_module(&self, position: FilePosition) -> Cancelable<Vec<NavigationTarget>> {
|
||||
self.with_db(|db| db.parent_module(position))?
|
||||
self.with_db(|db| parent_module::parent_module(db, position))?
|
||||
}
|
||||
|
||||
/// Returns crates this file belongs too.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue