Skip to content

Commit d179208

Browse files
boondocklabsusbalbin
authored andcommitted
Fix warning causing CI to fail
1 parent c0c0805 commit d179208

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/flash.rs

Lines changed: 2 additions & 2 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(&mut self, flash_sz: FlashSize) -> FlashWriter<'_, { 2 * SZ_1K }> {
432432
FlashWriter {
433433
flash: self,
434434
flash_sz,
@@ -446,7 +446,7 @@ impl Parts {
446446
pub fn writer<const PAGE_SIZE_KB: u32>(
447447
&mut self,
448448
flash_sz: FlashSize,
449-
) -> FlashWriter<PAGE_SIZE_KB> {
449+
) -> FlashWriter<'_, PAGE_SIZE_KB> {
450450
FlashWriter {
451451
flash: self,
452452
flash_sz,

0 commit comments

Comments
 (0)