diff options
| author | datdenkikniet <jcdra1@gmail.com> | 2023-04-16 13:35:06 +0200 |
|---|---|---|
| committer | datdenkikniet <jcdra1@gmail.com> | 2023-04-16 13:35:06 +0200 |
| commit | 2b9e8cbf1fa53a201759f5c38c5c9f5a330d2f99 (patch) | |
| tree | b551d0bb64cb0caed0b89d54e4cc173d600025a1 | |
| parent | e4b673646a9e846fabf24d6776e2a915a5c7366d (diff) | |
Fix UI test
| -rw-r--r-- | rtic/ui/task-priority-too-high.rs | 2 | ||||
| -rw-r--r-- | rtic/ui/task-priority-too-high.stderr | 8 |
2 files changed, 1 insertions, 9 deletions
diff --git a/rtic/ui/task-priority-too-high.rs b/rtic/ui/task-priority-too-high.rs index 44e4a25..56c77d2 100644 --- a/rtic/ui/task-priority-too-high.rs +++ b/rtic/ui/task-priority-too-high.rs @@ -9,7 +9,7 @@ mod app { struct Local {} #[init] - fn init(cx: init::Context) -> (Shared, Local) { + fn init(_cx: init::Context) -> (Shared, Local) { (Shared {}, Local {}) } diff --git a/rtic/ui/task-priority-too-high.stderr b/rtic/ui/task-priority-too-high.stderr index 1256377..026124c 100644 --- a/rtic/ui/task-priority-too-high.stderr +++ b/rtic/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) { - | ^^ 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 | |
