aboutsummaryrefslogtreecommitdiff
path: root/examples/async-task.rs
diff options
context:
space:
mode:
authorGravatar Emil Fresk <emil.fresk@gmail.com> 2023-01-07 13:18:43 +0100
committerGravatar Henrik Tjäder <henrik@tjaders.com> 2023-03-01 00:31:06 +0100
commit2ad36a6efed5028e0e6bd991b82a50c045f825a8 (patch)
tree58ba9c68c972b267e580dd397bf60e0f8b71f632 /examples/async-task.rs
parent511ff675b558812d65048ae737b6f1c53133e211 (diff)
downloadrtic-2ad36a6efed5028e0e6bd991b82a50c045f825a8.tar.gz
rtic-2ad36a6efed5028e0e6bd991b82a50c045f825a8.tar.zst
rtic-2ad36a6efed5028e0e6bd991b82a50c045f825a8.zip
Lifetime cleanup
Diffstat (limited to 'examples/async-task.rs')
-rw-r--r--examples/async-task.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/async-task.rs b/examples/async-task.rs
index d058fe54..45d44fd5 100644
--- a/examples/async-task.rs
+++ b/examples/async-task.rs
@@ -43,13 +43,13 @@ mod app {
#[task(binds = UART1, shared = [a])]
fn hw_task(cx: hw_task::Context) {
- let hw_task::SharedResources { a } = cx.shared;
+ let hw_task::SharedResources { a, .. } = cx.shared;
hprintln!("hello from hw").ok();
}
#[task(shared = [a])]
async fn async_task(cx: async_task::Context) {
- let async_task::SharedResources { a } = cx.shared;
+ let async_task::SharedResources { a, .. } = cx.shared;
hprintln!("hello from async").ok();
debug::exit(debug::EXIT_SUCCESS);
@@ -57,7 +57,7 @@ mod app {
#[task(priority = 2, shared = [a])]
async fn async_task2(cx: async_task2::Context) {
- let async_task2::SharedResources { a } = cx.shared;
+ let async_task2::SharedResources { a, .. } = cx.shared;
hprintln!("hello from async2").ok();
}
}