Remove some unwraps
This commit is contained in:
parent
8559bf664e
commit
1ca83c25d5
|
@ -176,9 +176,9 @@ impl InitrdLoader {
|
|||
handle: Handle,
|
||||
mut file: RegularFile,
|
||||
) -> Result<Self> {
|
||||
initrd_verify(boot_services, &mut file).unwrap();
|
||||
initrd_verify(boot_services, &mut file)?;
|
||||
|
||||
let range = initrd_location(&mut file).unwrap();
|
||||
let range = initrd_location(&mut file)?;
|
||||
let mut proto = Box::pin(LoadFile2Protocol {
|
||||
load_file: raw_load_file,
|
||||
file,
|
||||
|
|
Loading…
Reference in New Issue