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/destructure.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/destructure.rs') diff --git a/examples/destructure.rs b/examples/destructure.rs index 3c5eabf..d843978 100644 --- a/examples/destructure.rs +++ b/examples/destructure.rs @@ -32,7 +32,7 @@ mod app { } // Direct destructure - #[task(binds = UART0, resources = [a, b, c])] + #[task(binds = UART0, resources = [&a, &b, &c])] fn uart0(cx: uart0::Context) { let a = cx.resources.a; let b = cx.resources.b; @@ -42,7 +42,7 @@ mod app { } // De-structure-ing syntax - #[task(binds = UART1, resources = [a, b, c])] + #[task(binds = UART1, resources = [&a, &b, &c])] fn uart1(cx: uart1::Context) { let uart1::Resources { a, b, c } = cx.resources; -- cgit v1.2.3