From 0b29e6da87529c5b8318209fe2decf82b21f39d1 Mon Sep 17 00:00:00 2001 From: Per Lindgren Date: Sun, 25 Oct 2020 22:50:38 +0100 Subject: [PATCH] transmute fix --- examples/async_systick.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))); } _ => {} };