mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
Change HasChildSource::ChildId assoc item to generic param
This commit is contained in:
parent
34f7b5383a
commit
2c67a4abe4
4 changed files with 37 additions and 23 deletions
|
@ -36,8 +36,7 @@ impl<N: ItemTreeNode> HasSource for ItemLoc<N> {
|
|||
}
|
||||
}
|
||||
|
||||
pub trait HasChildSource {
|
||||
type ChildId;
|
||||
pub trait HasChildSource<ChildId> {
|
||||
type Value;
|
||||
fn child_source(&self, db: &dyn DefDatabase) -> InFile<ArenaMap<Self::ChildId, Self::Value>>;
|
||||
fn child_source(&self, db: &dyn DefDatabase) -> InFile<ArenaMap<ChildId, Self::Value>>;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue