Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions uefi/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,12 +313,9 @@

let file_handle_result = root.open(filename, FileMode::Read, FileAttribute::empty());

let file_handle = match file_handle_result {
Err(_) => return None,
Ok(handle) => handle,
};
let file_handle = file_handle_result.ok();

let mut file = match file_handle.into_type().unwrap() {

Check failure on line 318 in uefi/src/main.rs

View workflow job for this annotation

GitHub Actions / Clippy

no method named `into_type` found for enum `core::option::Option` in the current scope

Check failure on line 318 in uefi/src/main.rs

View workflow job for this annotation

GitHub Actions / Check

no method named `into_type` found for enum `Option` in the current scope
uefi::proto::media::file::FileType::Regular(f) => f,
uefi::proto::media::file::FileType::Dir(_) => panic!(),
};
Expand Down
Loading