Verified Commit 55b67cd7 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Fix implementation of GlobalAlloc

parent 3d865b8d
......@@ -29,7 +29,7 @@ fn get_uefi() -> Option<&'static mut SystemTable> {
pub struct Allocator;
unsafe impl<'a> GlobalAlloc for &'a Allocator {
unsafe impl GlobalAlloc for Allocator {
unsafe fn alloc(&self, layout: Layout) -> *mut u8 {
if let Some(ref mut uefi) = get_uefi() {
let mut ptr = 0;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment