mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
simplify
This commit is contained in:
parent
ed27bd8d77
commit
74beb5bfcb
5 changed files with 20 additions and 14 deletions
|
@ -165,7 +165,7 @@ impl Module {
|
|||
|
||||
/// Returns a `ModuleScope`: a set of items, visible in this module.
|
||||
pub fn scope(&self, db: &impl HirDatabase) -> ModuleScope {
|
||||
self.scope_impl(db)
|
||||
db.item_map(self.krate)[self.module_id].clone()
|
||||
}
|
||||
|
||||
pub fn resolve_path(&self, db: &impl HirDatabase, path: &Path) -> PerNs<ModuleDef> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue