Skip to content

Commit a26eedd

Browse files
committed
clippy
1 parent c0c0805 commit a26eedd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/flash.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ pub struct Parts {
428428
}
429429
impl 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,

0 commit comments

Comments
 (0)