aboutsummaryrefslogtreecommitdiff
path: root/examples/smallest.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/smallest.rs')
-rw-r--r--examples/smallest.rs13
1 files changed, 3 insertions, 10 deletions
diff --git a/examples/smallest.rs b/examples/smallest.rs
index e4d86be9..b8cbf87e 100644
--- a/examples/smallest.rs
+++ b/examples/smallest.rs
@@ -1,17 +1,10 @@
//! examples/smallest.rs
-#![deny(unsafe_code)]
-#![deny(warnings)]
#![no_main]
#![no_std]
-// panic-handler crate
-extern crate panic_semihosting;
-
-use rtfm::app;
+use panic_semihosting as _; // panic handler
+use rtic::app;
#[app(device = lm3s6965)]
-const APP: () = {
- #[init]
- fn init() {}
-};
+mod app {}