Skip to content

Commit eb45dd3

Browse files
committed
Fix clippy error in flash.rs
1 parent c5cee20 commit eb45dd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/flash.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ impl WriteErase for UnlockedFlash<'_> {
215215
self.flash.cr.modify(|_, w| w.pg().set_bit());
216216
unsafe {
217217
ptr::write_volatile(addr, half_word);
218-
addr = addr.add(mem::size_of::<Self::NativeType>());
218+
addr = addr.add(1);
219219
}
220220
}
221221

0 commit comments

Comments
 (0)