From f5a4d8e9041d81e8c423727010f99df5fa97616d Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Sun, 23 Jul 2017 20:59:35 -0500 Subject: don't wrap static references in a `Static` --- examples/full-syntax.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/full-syntax.rs') diff --git a/examples/full-syntax.rs b/examples/full-syntax.rs index 7ac42e3..6965a63 100644 --- a/examples/full-syntax.rs +++ b/examples/full-syntax.rs @@ -47,9 +47,9 @@ fn init_(_p: init::Peripherals, _r: init::Resources) {} fn idle_(t: &mut Threshold, mut r: idle::Resources) -> ! { loop { - **r.OWNED != **r.OWNED; + *r.OWNED != *r.OWNED; - if **r.OWNED { + if *r.OWNED { if r.SHARED.claim(t, |shared, _| **shared) { rtfm::wfi(); } -- cgit v1.2.3