We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0c0805 commit d179208Copy full SHA for d179208
src/flash.rs
@@ -428,7 +428,7 @@ pub struct Parts {
428
}
429
impl Parts {
430
#[cfg(any(feature = "stm32g431", feature = "stm32g441",))]
431
- pub fn writer(&mut self, flash_sz: FlashSize) -> FlashWriter<{ 2 * SZ_1K }> {
+ pub fn writer(&mut self, flash_sz: FlashSize) -> FlashWriter<'_, { 2 * SZ_1K }> {
432
FlashWriter {
433
flash: self,
434
flash_sz,
@@ -446,7 +446,7 @@ impl Parts {
446
pub fn writer<const PAGE_SIZE_KB: u32>(
447
&mut self,
448
flash_sz: FlashSize,
449
- ) -> FlashWriter<PAGE_SIZE_KB> {
+ ) -> FlashWriter<'_, PAGE_SIZE_KB> {
450
451
452
0 commit comments