diff options
| author | Jorge Aparicio <jorge@japaric.io> | 2017-07-23 20:59:35 -0500 |
|---|---|---|
| committer | Jorge Aparicio <jorge@japaric.io> | 2017-07-23 20:59:35 -0500 |
| commit | f5a4d8e9041d81e8c423727010f99df5fa97616d (patch) | |
| tree | 116b16657d53185607ebcce47cdc93817766e6fb /examples/full-syntax.rs | |
| parent | 6ea9cda6635e7536523f3c6d3d217f7d474ae4a2 (diff) | |
don't wrap static references in a `Static`
Diffstat (limited to 'examples/full-syntax.rs')
| -rw-r--r-- | examples/full-syntax.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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(); } |
