@@ -292,14 +292,13 @@ fn prepare_multiboot_information(
292
292
/// a kernel, information and modules.
293
293
///
294
294
/// This is the main struct in this module.
295
- pub struct PreparedEntry < ' a > {
296
- entry : & ' a Entry ,
295
+ pub struct PreparedEntry {
297
296
loaded_kernel : LoadedKernel ,
298
297
multiboot_information : InfoBuilder ,
299
298
modules_vec : Vec < Allocation > ,
300
299
}
301
300
302
- impl < ' a > PreparedEntry < ' a > {
301
+ impl PreparedEntry {
303
302
/// Prepare an entry for boot.
304
303
///
305
304
/// What this means:
@@ -313,7 +312,7 @@ impl<'a> PreparedEntry<'a> {
313
312
/// The returned `PreparedEntry` can be used to actually boot.
314
313
/// This is non-destructive and will always return.
315
314
pub ( crate ) fn new (
316
- entry : & ' a Entry , image_fs_handle : Handle ,
315
+ entry : & Entry , image_fs_handle : Handle ,
317
316
) -> Result < Self , Status > {
318
317
let kernel_vec: Vec < u8 > = File :: open ( & entry. image , image_fs_handle) ?. try_into ( ) ?;
319
318
let header = Header :: from_slice ( kernel_vec. as_slice ( ) ) . ok_or_else ( || {
@@ -345,7 +344,7 @@ impl<'a> PreparedEntry<'a> {
345
344
) ;
346
345
347
346
Ok ( PreparedEntry {
348
- entry , loaded_kernel, multiboot_information, modules_vec,
347
+ loaded_kernel, multiboot_information, modules_vec,
349
348
} )
350
349
}
351
350
0 commit comments