common/peripheral: do not require mut in PeripheralRef clone_unchecked.
This commit is contained in:
@@ -33,8 +33,7 @@ impl<'d> Flash<'d> {
|
||||
}
|
||||
|
||||
pub(crate) fn release(self) -> PeripheralRef<'d, crate::peripherals::FLASH> {
|
||||
let mut flash = self;
|
||||
unsafe { flash.inner.clone_unchecked() }
|
||||
unsafe { self.inner.clone_unchecked() }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user