File tree 3 files changed +7
-5
lines changed
3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ pub fn init(st: &mut SystemTable<Boot>) -> Result<()> {
92
92
93
93
#[ cfg( feature = "global_allocator" ) ]
94
94
unsafe {
95
- uefi :: allocator:: init ( st) ;
95
+ crate :: allocator:: init ( st) ;
96
96
}
97
97
98
98
Ok ( ( ) )
@@ -111,5 +111,5 @@ pub(crate) fn exit() {
111
111
logger:: disable ( ) ;
112
112
113
113
#[ cfg( feature = "global_allocator" ) ]
114
- uefi :: allocator:: exit_boot_services ( ) ;
114
+ crate :: allocator:: exit_boot_services ( ) ;
115
115
}
Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ fn panic_handler(info: &core::panic::PanicInfo) -> ! {
29
29
} else {
30
30
// If the system table is available, use UEFI's standard shutdown mechanism
31
31
if let Some ( st) = system_table_opt( ) {
32
- use uefi :: table:: runtime:: ResetType ;
32
+ use crate :: table:: runtime:: ResetType ;
33
33
st. runtime_services( )
34
- . reset( ResetType :: SHUTDOWN , uefi :: Status :: ABORTED , None ) ;
34
+ . reset( ResetType :: SHUTDOWN , crate :: Status :: ABORTED , None ) ;
35
35
}
36
36
37
37
// If we don't have any shutdown mechanism handy, the best we can do is loop
Original file line number Diff line number Diff line change @@ -15,10 +15,12 @@ use core::ffi::c_void;
15
15
use core:: fmt:: Debug ;
16
16
use core:: { mem, ptr} ;
17
17
use uefi_raw:: protocol:: file_system:: FileProtocolV1 ;
18
+
18
19
#[ cfg( all( feature = "unstable" , feature = "alloc" ) ) ]
19
20
use { alloc:: alloc:: Global , core:: alloc:: Allocator } ;
21
+
20
22
#[ cfg( feature = "alloc" ) ]
21
- use { alloc :: boxed :: Box , uefi :: mem :: make_boxed } ;
23
+ use { crate :: mem :: make_boxed , alloc :: boxed :: Box } ;
22
24
23
25
pub use self :: dir:: Directory ;
24
26
pub use self :: info:: {
You can’t perform that action at this time.
0 commit comments