diff --git a/examples/async_systick.rs b/examples/async_systick.rs index e44a5deb64..4f79269ddc 100644 --- a/examples/async_systick.rs +++ b/examples/async_systick.rs @@ -107,7 +107,7 @@ mod app { match TASK { Task::Idle | Task::Done(_) => { hprintln!("create task").ok(); - TASK.spawn(|| create(cx)); + TASK.spawn(|| create(mem::transmute(cx))); } _ => {} };