Skip to content

Commit 4ab3693

Browse files
committed
Fixed formating
1 parent 1e9923e commit 4ab3693

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

src/flash.rs

+5-12
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,7 @@ impl<'a> EraseSequence<'a> {
180180
feature = "stm32f778",
181181
feature = "stm32f779",
182182
))]
183-
w
184-
.mer1().clear_bit()
185-
.mer2().clear_bit();
183+
w.mer1().clear_bit().mer2().clear_bit();
186184
#[cfg(not(any(
187185
feature = "stm32f765",
188186
feature = "stm32f767",
@@ -192,9 +190,7 @@ impl<'a> EraseSequence<'a> {
192190
feature = "stm32f779",
193191
)))]
194192
w.mer().clear_bit();
195-
w
196-
.ser().set_bit()
197-
.snb().bits(sector_number)
193+
w.ser().set_bit().snb().bits(sector_number)
198194
});
199195
flash.registers.cr.modify(|_, w| w.strt().start());
200196

@@ -215,9 +211,7 @@ impl<'a> EraseSequence<'a> {
215211
feature = "stm32f778",
216212
feature = "stm32f779",
217213
))]
218-
w
219-
.mer1().set_bit()
220-
.mer2().set_bit();
214+
w.mer1().set_bit().mer2().set_bit();
221215
#[cfg(not(any(
222216
feature = "stm32f765",
223217
feature = "stm32f767",
@@ -227,10 +221,9 @@ impl<'a> EraseSequence<'a> {
227221
feature = "stm32f779",
228222
)))]
229223
w.mer().clear_bit();
230-
w
231-
.ser().clear_bit()
224+
w.ser().clear_bit()
232225
});
233-
226+
234227
flash.registers.cr.modify(|_, w| w.strt().start());
235228

236229
Ok(Self { flash })

0 commit comments

Comments
 (0)