From 45c23bf595296a819509da3090c7979dd72a767c Mon Sep 17 00:00:00 2001
From: Per Lindgren <per.lindgren@ltu.se>
Date: Thu, 30 Jan 2020 23:55:17 +0100
Subject: [PATCH] spawn polish

---
 examples/rtfm_itm_spawn.rs | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/examples/rtfm_itm_spawn.rs b/examples/rtfm_itm_spawn.rs
index c7689c0..4070bb8 100644
--- a/examples/rtfm_itm_spawn.rs
+++ b/examples/rtfm_itm_spawn.rs
@@ -1,11 +1,10 @@
 #![no_main]
 #![no_std]
 
-use cortex_m::{iprint, iprintln};
+use cortex_m::iprintln;
 
 use panic_semihosting as _;
 use rtfm::app;
-use stm32f4xx_hal::stm32 as pac;
 
 #[app(device = stm32f4xx_hal::stm32, peripherals = true )]
 const APP: () = {
@@ -23,7 +22,7 @@ const APP: () = {
     }
 
     #[idle (resources = [itm], spawn = [task1])]
-    fn idle(mut cx: idle::Context) -> ! {
+    fn idle(cx: idle::Context) -> ! {
         let (mut itm, spawn) = (cx.resources.itm, cx.spawn);
         itm.lock(|itm| {
             let stim = &mut itm.stim[0];
-- 
GitLab