Remove unneeded unsafe

This commit is contained in:
9names 2021-04-29 11:11:11 +10:00
parent 3bdc338a0d
commit 1b42913077

View file

@ -203,7 +203,7 @@ impl CrystalOscillator<Stable> {
//taken from the C SDK //taken from the C SDK
const XOSC_DORMANT_VALUE: u32 = 0x636f6d61; const XOSC_DORMANT_VALUE: u32 = 0x636f6d61;
self.device.dormant.write(|w| unsafe { self.device.dormant.write(|w| {
w.bits(XOSC_DORMANT_VALUE); w.bits(XOSC_DORMANT_VALUE);
w w
}); });