diff options
| author | homunkulus <homunkulus@gmx.com> | 2017-12-23 10:36:08 +0000 |
|---|---|---|
| committer | homunkulus <homunkulus@gmx.com> | 2017-12-23 10:36:08 +0000 |
| commit | 8a396c51f2caaeca7ee0f81ef2f3c4f2f73d8df1 (patch) | |
| tree | fa6538343f2d524be574285c2bb68057edc11420 /examples/generics.rs | |
| parent | 0f5784c2401d4b12004f34345e721598fa21219a (diff) | |
| parent | a238fd5dc783f57f8fa61795690e6069b1becd32 (diff) | |
Auto merge of #58 - japaric:init-resources, r=japaric
safe `&'static mut` references via init.resources
see RFC #59 for details
Diffstat (limited to 'examples/generics.rs')
| -rw-r--r-- | examples/generics.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/generics.rs b/examples/generics.rs index 7cf9257..ca7726d 100644 --- a/examples/generics.rs +++ b/examples/generics.rs @@ -70,5 +70,5 @@ fn exti0(t: &mut Threshold, r: EXTI0::Resources) { // This task has direct access to the resources fn exti1(t: &mut Threshold, r: EXTI1::Resources) { - work(t, r.GPIOA, r.SPI1); + work(t, &r.GPIOA, &r.SPI1); } |
