File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -428,7 +428,7 @@ pub struct Parts {
428428}
429429impl Parts {
430430 #[ cfg( any( feature = "stm32g431" , feature = "stm32g441" , ) ) ]
431- pub fn writer ( & mut self , flash_sz : FlashSize ) -> FlashWriter < { 2 * SZ_1K } > {
431+ pub fn writer < ' a > ( & ' a mut self , flash_sz : FlashSize ) -> FlashWriter < ' a , { 2 * SZ_1K } > {
432432 FlashWriter {
433433 flash : self ,
434434 flash_sz,
@@ -443,10 +443,10 @@ impl Parts {
443443 feature = "stm32g491" ,
444444 feature = "stm32g4a1" ,
445445 ) ) ]
446- pub fn writer < const PAGE_SIZE_KB : u32 > (
447- & mut self ,
446+ pub fn writer < ' a , const PAGE_SIZE_KB : u32 > (
447+ & ' a mut self ,
448448 flash_sz : FlashSize ,
449- ) -> FlashWriter < PAGE_SIZE_KB > {
449+ ) -> FlashWriter < ' a , PAGE_SIZE_KB > {
450450 FlashWriter {
451451 flash : self ,
452452 flash_sz,
You can’t perform that action at this time.
0 commit comments