Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kennystrawnmusic committed Mar 30, 2024
1 parent b2dae3b commit 022bbbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use core::alloc::{GlobalAlloc, Layout};
pub use slab_allocator_rs::LockedHeap;
use core::alloc::{Layout,GlobalAlloc};
use spin::Lazy;

// A wrapper around `slab_allocator_rs::LockedHeap` that initializes the heap lazily.
Expand Down Expand Up @@ -32,4 +32,4 @@ unsafe impl GlobalAlloc for LazyHeap {
unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) {
unsafe { self.0.dealloc(ptr, layout) }
}
}
}

0 comments on commit 022bbbd

Please sign in to comment.