Skip to content

Commit bb9294f

Browse files
committed
Fixes from PR
- rename to image_handle_protocol Signed-off-by: Ayush Singh <[email protected]>
1 parent 9f26c8b commit bb9294f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/std/src/sys/uefi/args.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub struct Args {
1616
pub fn args() -> Args {
1717
// SAFETY: Each loaded image has an image handle that supports EFI_LOADED_IMAGE_PROTOCOL
1818
let protocol =
19-
helpers::current_handle_protocol::<loaded_image::Protocol>(loaded_image::PROTOCOL_GUID)
19+
helpers::image_handle_protocol::<loaded_image::Protocol>(loaded_image::PROTOCOL_GUID)
2020
.unwrap();
2121

2222
let lp_size = unsafe { (*protocol.as_ptr()).load_options_size } as usize;

library/std/src/sys/uefi/helpers.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ pub(crate) unsafe fn close_event(evt: NonNull<crate::ffi::c_void>) -> io::Result
142142

143143
/// Get the Protocol for current system handle.
144144
/// Note: Some protocols need to be manually freed. It is the callers responsibility to do so.
145-
pub(crate) fn current_handle_protocol<T>(protocol_guid: Guid) -> Option<NonNull<T>> {
145+
pub(crate) fn image_handle_protocol<T>(protocol_guid: Guid) -> Option<NonNull<T>> {
146146
let system_handle = uefi::env::try_image_handle()?;
147147
open_protocol(system_handle, protocol_guid).ok()
148148
}

0 commit comments

Comments
 (0)