diff options
| author | Jorge Aparicio <jorge@japaric.io> | 2017-12-09 14:43:29 +0100 |
|---|---|---|
| committer | Jorge Aparicio <jorge@japaric.io> | 2017-12-09 17:17:56 +0100 |
| commit | a6dd004113fcbc03ffacacc519d742ee84886c1d (patch) | |
| tree | 66b70421a0ab00ab8a2be2fb990c15223e495535 /examples/preemption.rs | |
| parent | 219e17268018f397ff3c8a41519c8345aeab7f2f (diff) | |
implement the Resource trait for owned resources
this unbreaks the "generics" example
Diffstat (limited to 'examples/preemption.rs')
| -rw-r--r-- | examples/preemption.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/preemption.rs b/examples/preemption.rs index 07e9362..8e50188 100644 --- a/examples/preemption.rs +++ b/examples/preemption.rs @@ -42,7 +42,7 @@ fn idle() -> ! { } } -fn sys_tick(_t: &mut Threshold, r: SYS_TICK::Resources) { +fn sys_tick(_t: &mut Threshold, mut r: SYS_TICK::Resources) { // .. // This task can't be preempted by `tim2` so it has direct access to the |
