diff --git a/examples/global_alloc.rs b/examples/global_alloc.rs index 490c160..63a16e7 100644 --- a/examples/global_alloc.rs +++ b/examples/global_alloc.rs @@ -1,11 +1,9 @@ #![no_std] #![no_main] -#![feature(alloc_error_handler)] extern crate alloc; use alloc::vec::Vec; -use core::alloc::Layout; use core::panic::PanicInfo; use cortex_m_rt::entry; use embedded_alloc::Heap; @@ -29,11 +27,6 @@ fn main() -> ! { loop { /* .. */ } } -#[alloc_error_handler] -fn oom(_: Layout) -> ! { - loop {} -} - #[panic_handler] fn panic(_: &PanicInfo) -> ! { loop {}