Skip to content

Commit

Permalink
Cleanup NVIC prio too high example
Browse files Browse the repository at this point in the history
  • Loading branch information
AfoHT committed Jan 22, 2023
1 parent 86ce891 commit c29e477
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion ui/task-priority-too-high.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}

Expand Down
8 changes: 0 additions & 8 deletions ui/task-priority-too-high.stderr
Original file line number Diff line number Diff line change
@@ -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
|
Expand Down

0 comments on commit c29e477

Please sign in to comment.