@@ -161,7 +161,7 @@ impl<'a> RamBundle<'a> {
161
161
}
162
162
163
163
/// Looks up a module by ID in the bundle
164
- pub fn get_module ( & self , id : usize ) -> Result < Option < RamBundleModule > > {
164
+ pub fn get_module ( & self , id : usize ) -> Result < Option < RamBundleModule < ' _ > > > {
165
165
match self . repr {
166
166
RamBundleImpl :: Indexed ( ref indexed) => indexed. get_module ( id) ,
167
167
RamBundleImpl :: Unbundle ( ref file) => file. get_module ( id) ,
@@ -184,7 +184,7 @@ impl<'a> RamBundle<'a> {
184
184
}
185
185
}
186
186
/// Returns an iterator over all modules in the bundle
187
- pub fn iter_modules ( & self ) -> RamBundleModuleIter {
187
+ pub fn iter_modules ( & self ) -> RamBundleModuleIter < ' _ > {
188
188
RamBundleModuleIter {
189
189
range : 0 ..self . module_count ( ) ,
190
190
ram_bundle : self ,
@@ -267,7 +267,7 @@ impl UnbundleRamBundle {
267
267
}
268
268
269
269
/// Looks up a module by ID in the bundle
270
- pub fn get_module ( & self , id : usize ) -> Result < Option < RamBundleModule > > {
270
+ pub fn get_module ( & self , id : usize ) -> Result < Option < RamBundleModule < ' _ > > > {
271
271
match self . modules . get ( & id) {
272
272
Some ( data) => Ok ( Some ( RamBundleModule { id, data } ) ) ,
273
273
None => Ok ( None ) ,
@@ -320,7 +320,7 @@ impl<'a> IndexedRamBundle<'a> {
320
320
}
321
321
322
322
/// Looks up a module by ID in the bundle
323
- pub fn get_module ( & self , id : usize ) -> Result < Option < RamBundleModule > > {
323
+ pub fn get_module ( & self , id : usize ) -> Result < Option < RamBundleModule < ' _ > > > {
324
324
if id >= self . module_count {
325
325
return Err ( Error :: InvalidRamBundleIndex ) ;
326
326
}
0 commit comments