9595
9696impl ModuleTree < ' _ > {
9797 /// Returns the tree node data of the given id.
98- pub fn node_data ( & self , id : ModuleTreeNodeId ) -> & ModuleTreeNode {
98+ pub fn node_data ( & self , id : ModuleTreeNodeId ) -> & ModuleTreeNode < ' _ > {
9999 & self . module_tree . 0 [ id]
100100 }
101101
@@ -105,7 +105,7 @@ impl ModuleTree<'_> {
105105 }
106106
107107 /// Returns the tree node data of the given top level module.
108- pub fn tree_node_data ( & self , top_mod : TopLevelMod ) -> & ModuleTreeNode {
108+ pub fn tree_node_data ( & self , top_mod : TopLevelMod ) -> & ModuleTreeNode < ' _ > {
109109 & self . module_tree . 0 [ self . tree_node ( top_mod) ]
110110 }
111111
@@ -114,21 +114,21 @@ impl ModuleTree<'_> {
114114 self . root
115115 }
116116
117- pub fn root_data ( & self ) -> & ModuleTreeNode {
117+ pub fn root_data ( & self ) -> & ModuleTreeNode < ' _ > {
118118 self . node_data ( self . root )
119119 }
120120
121121 /// Returns an iterator of all top level modules in this ingot.
122- pub fn all_modules ( & self ) -> impl Iterator < Item = TopLevelMod > + ' _ {
122+ pub fn all_modules ( & self ) -> impl Iterator < Item = TopLevelMod < ' _ > > + ' _ {
123123 self . mod_map . keys ( ) . copied ( )
124124 }
125125
126- pub fn parent ( & self , top_mod : TopLevelMod ) -> Option < TopLevelMod > {
126+ pub fn parent ( & self , top_mod : TopLevelMod ) -> Option < TopLevelMod < ' _ > > {
127127 let node = self . tree_node_data ( top_mod) ;
128128 node. parent . map ( |id| self . module_tree . 0 [ id] . top_mod )
129129 }
130130
131- pub fn children ( & self , top_mod : TopLevelMod ) -> impl Iterator < Item = TopLevelMod > + ' _ {
131+ pub fn children ( & self , top_mod : TopLevelMod ) -> impl Iterator < Item = TopLevelMod < ' _ > > + ' _ {
132132 self . tree_node_data ( top_mod)
133133 . children
134134 . iter ( )
0 commit comments