From e8eca4be37a2fe1af25b203ace5e99b31fcc3972 Mon Sep 17 00:00:00 2001 From: Emil Fresk Date: Thu, 22 Oct 2020 21:36:32 +0200 Subject: Now all locks are symmetric Test fixes Fix test Fix comment --- examples/t-late-not-send.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'examples/t-late-not-send.rs') diff --git a/examples/t-late-not-send.rs b/examples/t-late-not-send.rs index 8b7b986..ce3bcba 100644 --- a/examples/t-late-not-send.rs +++ b/examples/t-late-not-send.rs @@ -23,11 +23,8 @@ mod app { y: Option, } - #[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 }, } -- cgit v1.2.3