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 | |
| parent | 6ea9cda6635e7536523f3c6d3d217f7d474ae4a2 (diff) | |
don't wrap static references in a `Static`
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/full-syntax.rs | 4 | ||||
| -rw-r--r-- | examples/modules.rs | 4 |
2 files changed, 4 insertions, 4 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(); } diff --git a/examples/modules.rs b/examples/modules.rs index f938461..aabada4 100644 --- a/examples/modules.rs +++ b/examples/modules.rs @@ -50,9 +50,9 @@ mod main { pub 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(); } |
