aboutsummaryrefslogtreecommitdiff
path: root/examples/t-cfg.rs
diff options
context:
space:
mode:
authorGravatar bors[bot] <26634292+bors[bot]@users.noreply.github.com> 2020-10-05 18:26:00 +0000
committerGravatar GitHub <noreply@github.com> 2020-10-05 18:26:00 +0000
commit12aa9807c4883e1c8b3f226acea3a6aa5e886989 (patch)
tree4febd53f9ba370a40e3ee0f3630a3542d1be4964 /examples/t-cfg.rs
parentf493f21359ccb3ab4643d9470f3581532f47593a (diff)
parent8ab7be98714d1ef6298e6feb19f16b84cd9bb4e6 (diff)
downloadrtic-12aa9807c4883e1c8b3f226acea3a6aa5e886989.tar.gz
rtic-12aa9807c4883e1c8b3f226acea3a6aa5e886989.tar.zst
rtic-12aa9807c4883e1c8b3f226acea3a6aa5e886989.zip
Merge #372
372: Now late resources are always used r=AfoHT a=korken89 Awaits the PR in `rtic-syntax`: https://github.com/rtic-rs/rtic-syntax/pull/32 Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
Diffstat (limited to 'examples/t-cfg.rs')
-rw-r--r--examples/t-cfg.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/t-cfg.rs b/examples/t-cfg.rs
index 3deb107c..3da20d4e 100644
--- a/examples/t-cfg.rs
+++ b/examples/t-cfg.rs
@@ -15,9 +15,11 @@ mod app {
}
#[init]
- fn init(_: init::Context) {
+ fn init(_: init::Context) -> init::LateResources {
#[cfg(never)]
static mut BAR: u32 = 0;
+
+ init::LateResources {}
}
#[idle]