From c29e477aa1849dc93daf6625a09d67cfcb5fc1e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Tj=C3=A4der?= Date: Sun, 22 Jan 2023 00:55:21 +0100 Subject: [PATCH] Cleanup NVIC prio too high example --- ui/task-priority-too-high.rs | 2 +- ui/task-priority-too-high.stderr | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/ui/task-priority-too-high.rs b/ui/task-priority-too-high.rs index 46ab561750..e7e0cce207 100644 --- a/ui/task-priority-too-high.rs +++ b/ui/task-priority-too-high.rs @@ -9,7 +9,7 @@ mod app { struct Local {} #[init] - fn init(cx: init::Context) -> (Shared, Local, init::Monotonics) { + fn init(_: init::Context) -> (Shared, Local, init::Monotonics) { (Shared {}, Local {}, init::Monotonics()) } diff --git a/ui/task-priority-too-high.stderr b/ui/task-priority-too-high.stderr index a7a15ebfe5..026124c8fa 100644 --- a/ui/task-priority-too-high.stderr +++ b/ui/task-priority-too-high.stderr @@ -1,11 +1,3 @@ -warning: unused variable: `cx` - --> ui/task-priority-too-high.rs:12:13 - | -12 | fn init(cx: init::Context) -> (Shared, Local, init::Monotonics) { - | ^^ help: if this is intentional, prefix it with an underscore: `_cx` - | - = note: `#[warn(unused_variables)]` on by default - error[E0080]: evaluation of constant value failed --> ui/task-priority-too-high.rs:3:1 |