From 1b4291307758b71dbdfb4ba28ec300154d169aa1 Mon Sep 17 00:00:00 2001 From: 9names <60134748+9names@users.noreply.github.com> Date: Thu, 29 Apr 2021 11:11:11 +1000 Subject: [PATCH] Remove unneeded unsafe --- rp2040-hal/src/xosc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rp2040-hal/src/xosc.rs b/rp2040-hal/src/xosc.rs index cf5d9ed..dcf324d 100644 --- a/rp2040-hal/src/xosc.rs +++ b/rp2040-hal/src/xosc.rs @@ -203,7 +203,7 @@ impl CrystalOscillator { //taken from the C SDK const XOSC_DORMANT_VALUE: u32 = 0x636f6d61; - self.device.dormant.write(|w| unsafe { + self.device.dormant.write(|w| { w.bits(XOSC_DORMANT_VALUE); w });