From 705b2fd62d034ae5c0f9a7a6d02a84e6a74c042b Mon Sep 17 00:00:00 2001 From: Per Lindgren Date: Wed, 20 Oct 2021 09:34:59 +0200 Subject: [PATCH] Destructure reverted (priority leakage fixed) --- examples/destructure.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/destructure.rs b/examples/destructure.rs index 13e0891317..6019c225cc 100644 --- a/examples/destructure.rs +++ b/examples/destructure.rs @@ -46,12 +46,10 @@ mod app { } // De-structure-ing syntax - - // TODO: hide priority field (or re-use priority from first resource) #[task(shared = [&a, &b, &c])] fn bar(cx: bar::Context) { - let bar::SharedResources { a, b, c, priority } = cx.shared; + let bar::SharedResources { a, b, c } = cx.shared; - hprintln!("bar: a = {}, b = {}, c = {}, p = {:?}", a, b, c, priority).unwrap(); + hprintln!("bar: a = {}, b = {}, c = {}", a, b, c).unwrap(); } }