Commit 2900927 1 parent 5aec796 commit 2900927 Copy full SHA for 2900927
File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -187,10 +187,10 @@ impl CpuControl {
187
187
/// The second core will start running the closure `entry`.
188
188
///
189
189
/// Dropping the returned guard will park the core.
190
- pub fn start_app_core (
190
+ pub fn start_app_core < ' a > (
191
191
& mut self ,
192
- entry : & mut ( dyn FnMut ( ) + Send ) ,
193
- ) -> Result < AppCoreGuard , Error > {
192
+ entry : & ' a mut ( dyn FnMut ( ) + Send ) ,
193
+ ) -> Result < AppCoreGuard < ' a > , Error > {
194
194
let dport_control = crate :: peripherals:: DPORT :: PTR ;
195
195
let dport_control = unsafe { & * dport_control } ;
196
196
Original file line number Diff line number Diff line change @@ -122,10 +122,10 @@ impl CpuControl {
122
122
/// The second core will start running the closure `entry`.
123
123
///
124
124
/// Dropping the returned guard will park the core.
125
- pub fn start_app_core (
125
+ pub fn start_app_core < ' a > (
126
126
& mut self ,
127
- entry : & mut ( dyn FnMut ( ) + Send ) ,
128
- ) -> Result < AppCoreGuard , Error > {
127
+ entry : & ' a mut ( dyn FnMut ( ) + Send ) ,
128
+ ) -> Result < AppCoreGuard < ' a > , Error > {
129
129
let system_control = crate :: peripherals:: SYSTEM :: PTR ;
130
130
let system_control = unsafe { & * system_control } ;
131
131
You can’t perform that action at this time.
0 commit comments