mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
remove useless wrapper
This commit is contained in:
parent
b90b90cb95
commit
ed27bd8d77
2 changed files with 1 additions and 6 deletions
|
@ -169,7 +169,7 @@ impl Module {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn resolve_path(&self, db: &impl HirDatabase, path: &Path) -> PerNs<ModuleDef> {
|
pub fn resolve_path(&self, db: &impl HirDatabase, path: &Path) -> PerNs<ModuleDef> {
|
||||||
self.resolve_path_impl(db, path)
|
db.item_map(self.krate).resolve_path(db, *self, path)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn problems(&self, db: &impl HirDatabase) -> Vec<(TreeArc<SyntaxNode>, Problem)> {
|
pub fn problems(&self, db: &impl HirDatabase) -> Vec<(TreeArc<SyntaxNode>, Problem)> {
|
||||||
|
|
|
@ -96,11 +96,6 @@ impl Module {
|
||||||
item_map.per_module[&self.module_id].clone()
|
item_map.per_module[&self.module_id].clone()
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn resolve_path_impl(&self, db: &impl HirDatabase, path: &Path) -> PerNs<ModuleDef> {
|
|
||||||
let item_map = db.item_map(self.krate);
|
|
||||||
item_map.resolve_path(db, *self, path)
|
|
||||||
}
|
|
||||||
|
|
||||||
pub(crate) fn problems_impl(
|
pub(crate) fn problems_impl(
|
||||||
&self,
|
&self,
|
||||||
db: &impl HirDatabase,
|
db: &impl HirDatabase,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue