@@ -162,7 +162,7 @@ impl<'a> RamBundle<'a> {
162162 }
163163
164164 /// Looks up a module by ID in the bundle
165- pub fn get_module ( & self , id : usize ) -> Result < Option < RamBundleModule > > {
165+ pub fn get_module ( & self , id : usize ) -> Result < Option < RamBundleModule < ' _ > > > {
166166 match self . repr {
167167 RamBundleImpl :: Indexed ( ref indexed) => indexed. get_module ( id) ,
168168 RamBundleImpl :: Unbundle ( ref file) => file. get_module ( id) ,
@@ -185,7 +185,7 @@ impl<'a> RamBundle<'a> {
185185 }
186186 }
187187 /// Returns an iterator over all modules in the bundle
188- pub fn iter_modules ( & self ) -> RamBundleModuleIter {
188+ pub fn iter_modules ( & self ) -> RamBundleModuleIter < ' _ > {
189189 RamBundleModuleIter {
190190 range : 0 ..self . module_count ( ) ,
191191 ram_bundle : self ,
@@ -268,7 +268,7 @@ impl UnbundleRamBundle {
268268 }
269269
270270 /// Looks up a module by ID in the bundle
271- pub fn get_module ( & self , id : usize ) -> Result < Option < RamBundleModule > > {
271+ pub fn get_module ( & self , id : usize ) -> Result < Option < RamBundleModule < ' _ > > > {
272272 match self . modules . get ( & id) {
273273 Some ( data) => Ok ( Some ( RamBundleModule { id, data } ) ) ,
274274 None => Ok ( None ) ,
@@ -321,7 +321,7 @@ impl<'a> IndexedRamBundle<'a> {
321321 }
322322
323323 /// Looks up a module by ID in the bundle
324- pub fn get_module ( & self , id : usize ) -> Result < Option < RamBundleModule > > {
324+ pub fn get_module ( & self , id : usize ) -> Result < Option < RamBundleModule < ' _ > > > {
325325 if id >= self . module_count {
326326 return Err ( Error :: InvalidRamBundleIndex ) ;
327327 }
0 commit comments