From 7bb74b21234f240975bbb40197820fa5ec691307 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Tue, 28 Aug 2018 14:54:40 +0200 Subject: [PATCH] fix some warnings --- examples/allocator.rs | 3 +-- examples/minimal.rs | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/allocator.rs b/examples/allocator.rs index 652a04c..5e242c8 100644 --- a/examples/allocator.rs +++ b/examples/allocator.rs @@ -11,7 +11,6 @@ #![feature(alloc)] #![feature(alloc_error_handler)] -#![feature(global_allocator)] #![feature(lang_items)] #![no_main] #![no_std] @@ -58,7 +57,7 @@ fn main() -> ! { // define what happens in an Out Of Memory (OOM) condition #[alloc_error_handler] #[no_mangle] -pub fn alloc_error(layout: Layout) -> ! { +pub fn alloc_error(_layout: Layout) -> ! { asm::bkpt(); loop {} diff --git a/examples/minimal.rs b/examples/minimal.rs index e174f0d..e573932 100644 --- a/examples/minimal.rs +++ b/examples/minimal.rs @@ -21,14 +21,13 @@ extern crate cortex_m; -#[macro_use(entry, exception)] +#[macro_use(entry)] extern crate cortex_m_rt as rt; // makes `panic!` print messages to the host stderr using semihosting extern crate panic_semihosting; use cortex_m::asm; -use rt::ExceptionFrame; // the program entry point is ... entry!(main);