aboutsummaryrefslogtreecommitdiff
path: root/examples/t-late-not-send.rs
diff options
context:
space:
mode:
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 },
}