Skip to content

Commit d69d7d0

Browse files
uefi: Fix unsafe_op_in_unsafe_fn in loaded_image module
1 parent ec0269b commit d69d7d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uefi/src/proto/loaded_image.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ impl LoadedImage {
150150
unload: extern "efiapi" fn(image_handle: Handle) -> Status,
151151
) {
152152
let unload: unsafe extern "efiapi" fn(image_handle: uefi_raw::Handle) -> uefi_raw::Status =
153-
mem::transmute(unload);
153+
unsafe { mem::transmute(unload) };
154154
self.0.unload = Some(unload);
155155
}
156156

0 commit comments

Comments
 (0)