aboutsummaryrefslogtreecommitdiff
path: root/examples/t-late-not-send.rs
diff options
context:
space:
mode:
authorGravatar bors[bot] <26634292+bors[bot]@users.noreply.github.com> 2020-10-23 20:52:58 +0000
committerGravatar GitHub <noreply@github.com> 2020-10-23 20:52:58 +0000
commitbbcae14e37c5f4ab5701b2a688bee52bfa7aaa1b (patch)
treec70a80e9bcacb54838f09141bd1d2b27e844760f /examples/t-late-not-send.rs
parentb3aa9e99a975eca637582f31de20fe11ae8f7d64 (diff)
parente8eca4be37a2fe1af25b203ace5e99b31fcc3972 (diff)
downloadrtic-bbcae14e37c5f4ab5701b2a688bee52bfa7aaa1b.tar.gz
rtic-bbcae14e37c5f4ab5701b2a688bee52bfa7aaa1b.tar.zst
rtic-bbcae14e37c5f4ab5701b2a688bee52bfa7aaa1b.zip
Merge #399
399: Now all locks are symmetric r=AfoHT a=korken89 Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
Diffstat (limited to 'examples/t-late-not-send.rs')
-rw-r--r--examples/t-late-not-send.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/examples/t-late-not-send.rs b/examples/t-late-not-send.rs
index 8b7b986f..ce3bcbac 100644
--- a/examples/t-late-not-send.rs
+++ b/examples/t-late-not-send.rs
@@ -23,11 +23,8 @@ mod app {
y: Option<NotSend>,
}
- #[init(resources = [y])]
- fn init(c: init::Context) -> init::LateResources {
- // equivalent to late resource initialization
- *c.resources.y = Some(NotSend { _0: PhantomData });
-
+ #[init]
+ fn init(_: init::Context) -> init::LateResources {
init::LateResources {
x: NotSend { _0: PhantomData },
}