From fd128b5831edc9b96dfdf2c2ffe0fa81b292af06 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Tue, 4 Feb 2020 09:33:22 +0100 Subject: [PATCH] The `Alloc` trait was renamed to `AllocRef` --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 45c7868..d87021d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -11,7 +11,7 @@ extern crate spin; extern crate alloc; -use alloc::alloc::{Alloc, AllocErr, Layout}; +use alloc::alloc::{AllocRef, AllocErr, Layout}; use core::alloc::{GlobalAlloc}; use core::mem; #[cfg(feature = "use_spin")] @@ -129,7 +129,7 @@ impl Heap { } } -unsafe impl Alloc for Heap { +unsafe impl AllocRef for Heap { unsafe fn alloc(&mut self, layout: Layout) -> Result, AllocErr> { self.allocate_first_fit(layout) }