diff options
author | Lukas Wirth <[email protected]> | 2020-12-14 16:11:27 +0000 |
---|---|---|
committer | Lukas Wirth <[email protected]> | 2020-12-15 17:21:01 +0000 |
commit | 2c67a4abe47ead6a00ce1b33ccc3d3bfcaaf0983 (patch) | |
tree | 05b8dced1ec7bb9580643f6d7606d3fa4eb3cf68 /crates/hir_def/src/src.rs | |
parent | 34f7b5383af61d8896c97e407888cfde2ba35350 (diff) |
Change HasChildSource::ChildId assoc item to generic param
Diffstat (limited to 'crates/hir_def/src/src.rs')
-rw-r--r-- | crates/hir_def/src/src.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/hir_def/src/src.rs b/crates/hir_def/src/src.rs index 7a79b0314..f67244b46 100644 --- a/crates/hir_def/src/src.rs +++ b/crates/hir_def/src/src.rs | |||
@@ -36,8 +36,7 @@ impl<N: ItemTreeNode> HasSource for ItemLoc<N> { | |||
36 | } | 36 | } |
37 | } | 37 | } |
38 | 38 | ||
39 | pub trait HasChildSource { | 39 | pub trait HasChildSource<ChildId> { |
40 | type ChildId; | ||
41 | type Value; | 40 | type Value; |
42 | fn child_source(&self, db: &dyn DefDatabase) -> InFile<ArenaMap<Self::ChildId, Self::Value>>; | 41 | fn child_source(&self, db: &dyn DefDatabase) -> InFile<ArenaMap<ChildId, Self::Value>>; |
43 | } | 42 | } |