From 0fc33297f8e823cdf8181a950ff18c9e96dbc646 Mon Sep 17 00:00:00 2001 From: Mirabellensaft Date: Wed, 12 Jan 2022 18:14:09 +0100 Subject: [PATCH] fix format --- beginner/apps/src/bin/panic.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/beginner/apps/src/bin/panic.rs b/beginner/apps/src/bin/panic.rs index befa1c7..0dd4bfa 100644 --- a/beginner/apps/src/bin/panic.rs +++ b/beginner/apps/src/bin/panic.rs @@ -4,7 +4,7 @@ use cortex_m::asm; use cortex_m_rt::entry; // this imports `beginner/apps/lib.rs` to retrieve our global logger + panicking-behavior -// use apps as _; +use apps as _; #[entry] fn main() -> ! { @@ -35,8 +35,3 @@ fn bar() { fn index() -> usize { 3 } - -#[panic_handler] -fn panic(info: &core::panic::PanicInfo) -> ! { - defmt::panic!("{}", info); -} \ No newline at end of file