diff options
author | 2020-10-22 21:36:32 +0200 | |
---|---|---|
committer | 2020-10-23 08:38:18 +0200 | |
commit | e8eca4be37a2fe1af25b203ace5e99b31fcc3972 (patch) | |
tree | c70a80e9bcacb54838f09141bd1d2b27e844760f /examples/t-late-not-send.rs | |
parent | b3aa9e99a975eca637582f31de20fe11ae8f7d64 (diff) | |
download | rtic-e8eca4be37a2fe1af25b203ace5e99b31fcc3972.tar.gz rtic-e8eca4be37a2fe1af25b203ace5e99b31fcc3972.tar.zst rtic-e8eca4be37a2fe1af25b203ace5e99b31fcc3972.zip |
Now all locks are symmetric
Test fixes
Fix test
Fix comment
Diffstat (limited to 'examples/t-late-not-send.rs')
-rw-r--r-- | examples/t-late-not-send.rs | 7 |
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 }, } |