Skip to content

Commit cca5943

Browse files
authored
The Alloc trait was renamed to AllocRef (#20)
1 parent 66752f7 commit cca5943

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ extern crate spin;
1111

1212
extern crate alloc;
1313

14-
use alloc::alloc::{Alloc, AllocErr, Layout};
14+
use alloc::alloc::{AllocRef, AllocErr, Layout};
1515
use core::alloc::{GlobalAlloc};
1616
use core::mem;
1717
#[cfg(feature = "use_spin")]
@@ -129,7 +129,7 @@ impl Heap {
129129
}
130130
}
131131

132-
unsafe impl Alloc for Heap {
132+
unsafe impl AllocRef for Heap {
133133
unsafe fn alloc(&mut self, layout: Layout) -> Result<NonNull<u8>, AllocErr> {
134134
self.allocate_first_fit(layout)
135135
}

0 commit comments

Comments
 (0)