File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -187,10 +187,10 @@ impl CpuControl {
187187 /// The second core will start running the closure `entry`.
188188 ///
189189 /// Dropping the returned guard will park the core.
190- pub fn start_app_core (
190+ pub fn start_app_core < ' a > (
191191 & mut self ,
192- entry : & mut ( dyn FnMut ( ) + Send ) ,
193- ) -> Result < AppCoreGuard , Error > {
192+ entry : & ' a mut ( dyn FnMut ( ) + Send ) ,
193+ ) -> Result < AppCoreGuard < ' a > , Error > {
194194 let dport_control = crate :: peripherals:: DPORT :: PTR ;
195195 let dport_control = unsafe { & * dport_control } ;
196196
Original file line number Diff line number Diff line change @@ -122,10 +122,10 @@ impl CpuControl {
122122 /// The second core will start running the closure `entry`.
123123 ///
124124 /// Dropping the returned guard will park the core.
125- pub fn start_app_core (
125+ pub fn start_app_core < ' a > (
126126 & mut self ,
127- entry : & mut ( dyn FnMut ( ) + Send ) ,
128- ) -> Result < AppCoreGuard , Error > {
127+ entry : & ' a mut ( dyn FnMut ( ) + Send ) ,
128+ ) -> Result < AppCoreGuard < ' a > , Error > {
129129 let system_control = crate :: peripherals:: SYSTEM :: PTR ;
130130 let system_control = unsafe { & * system_control } ;
131131
You can’t perform that action at this time.
0 commit comments