aboutsummaryrefslogtreecommitdiff
path: root/examples/generics.rs
diff options
context:
space:
mode:
authorGravatar Jorge Aparicio <jorge@japaric.io> 2017-12-09 14:43:29 +0100
committerGravatar Jorge Aparicio <jorge@japaric.io> 2017-12-09 17:17:56 +0100
commita6dd004113fcbc03ffacacc519d742ee84886c1d (patch)
tree66b70421a0ab00ab8a2be2fb990c15223e495535 /examples/generics.rs
parent219e17268018f397ff3c8a41519c8345aeab7f2f (diff)
downloadrtic-a6dd004113fcbc03ffacacc519d742ee84886c1d.tar.gz
rtic-a6dd004113fcbc03ffacacc519d742ee84886c1d.tar.zst
rtic-a6dd004113fcbc03ffacacc519d742ee84886c1d.zip
implement the Resource trait for owned resources
this unbreaks the "generics" example
Diffstat (limited to 'examples/generics.rs')
-rw-r--r--examples/generics.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/generics.rs b/examples/generics.rs
index 7cf9257b..ca7726d0 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);
}