Fix alloc example

This commit is contained in:
Thales Fragoso
2020-10-12 23:16:25 -03:00
parent be44af69cc
commit 5c6a17c0a6
2 changed files with 2 additions and 3 deletions

View File

@@ -9,7 +9,6 @@
//!
//! ---
#![feature(alloc)]
#![feature(alloc_error_handler)]
#![no_main]
#![no_std]
@@ -23,7 +22,7 @@ use core::alloc::Layout;
use alloc_cortex_m::CortexMHeap;
use cortex_m::asm;
use cortex_m_rt::entry;
use cortex_m_semihosting::hprintln;
use cortex_m_semihosting::{hprintln, debug};
// this is the allocator the application will use
#[global_allocator]