We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Alloc
AllocRef
1 parent 66752f7 commit cca5943Copy full SHA for cca5943
src/lib.rs
@@ -11,7 +11,7 @@ extern crate spin;
11
12
extern crate alloc;
13
14
-use alloc::alloc::{Alloc, AllocErr, Layout};
+use alloc::alloc::{AllocRef, AllocErr, Layout};
15
use core::alloc::{GlobalAlloc};
16
use core::mem;
17
#[cfg(feature = "use_spin")]
@@ -129,7 +129,7 @@ impl Heap {
129
}
130
131
132
-unsafe impl Alloc for Heap {
+unsafe impl AllocRef for Heap {
133
unsafe fn alloc(&mut self, layout: Layout) -> Result<NonNull<u8>, AllocErr> {
134
self.allocate_first_fit(layout)
135
0 commit comments