aboutsummaryrefslogtreecommitdiff
path: root/examples/not-sync.rs
diff options
context:
space:
mode:
authorEmil Fresk <emil.fresk@gmail.com>2020-10-01 19:38:49 +0200
committerEmil Fresk <emil.fresk@gmail.com>2020-10-01 19:38:49 +0200
commite7f0d9c3e3fad77dace2ce63af02559fda46cb73 (patch)
tree8a6be0817178f5877e546d5e8e29ae6b7589628d /examples/not-sync.rs
parent4d61437bb4debea5adc578ee072bff3619d8077b (diff)
Now late resources are always used
Diffstat (limited to 'examples/not-sync.rs')
-rw-r--r--examples/not-sync.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/not-sync.rs b/examples/not-sync.rs
index a7eaac8..5a67489 100644
--- a/examples/not-sync.rs
+++ b/examples/not-sync.rs
@@ -22,8 +22,10 @@ const APP: () = {
}
#[init]
- fn init(_: init::Context) {
+ fn init(_: init::Context) -> init::LateResources {
debug::exit(debug::EXIT_SUCCESS);
+
+ init::LateResources {}
}
#[task(resources = [&shared])]