Skip to content

Commit 7bb74b2

Browse files
committed
fix some warnings
1 parent 0eaa0de commit 7bb74b2

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

examples/allocator.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
1212
#![feature(alloc)]
1313
#![feature(alloc_error_handler)]
14-
#![feature(global_allocator)]
1514
#![feature(lang_items)]
1615
#![no_main]
1716
#![no_std]
@@ -58,7 +57,7 @@ fn main() -> ! {
5857
// define what happens in an Out Of Memory (OOM) condition
5958
#[alloc_error_handler]
6059
#[no_mangle]
61-
pub fn alloc_error(layout: Layout) -> ! {
60+
pub fn alloc_error(_layout: Layout) -> ! {
6261
asm::bkpt();
6362

6463
loop {}

examples/minimal.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,13 @@
2121

2222
extern crate cortex_m;
2323

24-
#[macro_use(entry, exception)]
24+
#[macro_use(entry)]
2525
extern crate cortex_m_rt as rt;
2626

2727
// makes `panic!` print messages to the host stderr using semihosting
2828
extern crate panic_semihosting;
2929

3030
use cortex_m::asm;
31-
use rt::ExceptionFrame;
3231

3332
// the program entry point is ...
3433
entry!(main);

0 commit comments

Comments
 (0)