Commit 3bcc031 1 parent 58c7085 commit 3bcc031 Copy full SHA for 3bcc031
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ unsafe impl core::alloc::AllocRef for Allocator {
128
128
fn alloc (
129
129
& self ,
130
130
layout : core:: alloc:: Layout ,
131
- ) -> Result < core:: ptr:: NonNull < [ u8 ] > , core:: alloc:: AllocErr > {
131
+ ) -> Result < core:: ptr:: NonNull < [ u8 ] > , core:: alloc:: AllocError > {
132
132
// We forward the allocation request to `AllocatePool()`. This takes the memory-type and
133
133
// size as argument, and places a pointer to the allocation in an output argument. Note
134
134
// that UEFI guarantees 8-byte alignment (i.e., `POOL_ALIGNMENT`). To support higher
@@ -148,9 +148,9 @@ unsafe impl core::alloc::AllocRef for Allocator {
148
148
// never a valid pointer). Furthermore, since the 0-page is usually unmapped and not
149
149
// available for EFI_CONVENTIONAL_MEMORY, a NULL pointer cannot be a valid return pointer.
150
150
// Therefore, we treat both a function failure as well as a NULL pointer the same and
151
- // return `AllocErr `.
151
+ // return `AllocError `.
152
152
if r. is_error ( ) || ptr. is_null ( ) {
153
- return Err ( core:: alloc:: AllocErr ) ;
153
+ return Err ( core:: alloc:: AllocError ) ;
154
154
}
155
155
156
156
unsafe {
You can’t perform that action at this time.
0 commit comments