Skip to content

Commit c29e477

Browse files
committed
Cleanup NVIC prio too high example
1 parent 86ce891 commit c29e477

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

ui/task-priority-too-high.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ mod app {
99
struct Local {}
1010

1111
#[init]
12-
fn init(cx: init::Context) -> (Shared, Local, init::Monotonics) {
12+
fn init(_: init::Context) -> (Shared, Local, init::Monotonics) {
1313
(Shared {}, Local {}, init::Monotonics())
1414
}
1515

ui/task-priority-too-high.stderr

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
warning: unused variable: `cx`
2-
--> ui/task-priority-too-high.rs:12:13
3-
|
4-
12 | fn init(cx: init::Context) -> (Shared, Local, init::Monotonics) {
5-
| ^^ help: if this is intentional, prefix it with an underscore: `_cx`
6-
|
7-
= note: `#[warn(unused_variables)]` on by default
8-
91
error[E0080]: evaluation of constant value failed
102
--> ui/task-priority-too-high.rs:3:1
113
|

0 commit comments

Comments
 (0)