File tree Expand file tree Collapse file tree
uefi-test-runner/src/proto Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ use alloc::vec::Vec;
66use core:: ffi:: c_void;
77use core:: pin:: Pin ;
88use core:: ptr;
9- use core:: ptr:: addr_of;
109use uefi:: proto:: BootPolicy ;
1110use uefi:: proto:: device_path:: build:: DevicePathBuilder ;
1211use uefi:: proto:: media:: load_file:: { LoadFile , LoadFile2 } ;
@@ -61,13 +60,14 @@ impl CustomLoadFile2Protocol {
6160
6261unsafe fn install_protocol ( handle : Handle , guid : Guid , protocol : & mut CustomLoadFile2Protocol ) {
6362 unsafe {
64- boot:: install_protocol_interface ( Some ( handle) , & guid, addr_of ! ( * protocol) . cast ( ) ) . unwrap ( ) ;
63+ boot:: install_protocol_interface ( Some ( handle) , & guid, ( & raw const * protocol) . cast ( ) )
64+ . unwrap ( ) ;
6565 }
6666}
6767
6868unsafe fn uninstall_protocol ( handle : Handle , guid : Guid , protocol : & mut CustomLoadFile2Protocol ) {
6969 unsafe {
70- boot:: uninstall_protocol_interface ( handle, & guid, addr_of ! ( * protocol) . cast ( ) ) . unwrap ( ) ;
70+ boot:: uninstall_protocol_interface ( handle, & guid, ( & raw const * protocol) . cast ( ) ) . unwrap ( ) ;
7171 }
7272}
7373
You can’t perform that action at this time.
0 commit comments