diff --git a/.cargo/config b/config.toml similarity index 100% rename from .cargo/config rename to config.toml diff --git a/src/wdt.rs b/src/wdt.rs index 282ba9aa..066c2384 100644 --- a/src/wdt.rs +++ b/src/wdt.rs @@ -10,7 +10,7 @@ use crate::pac::WDT; use crate::scu::PeripheralClock; use crate::scu::{Clock, PeripheralReset, Scu}; -/// +/// Bit value to clear alarms const ALARM_CLEAR: u32 = 2; ///Key applied to watchdog when serviced to reset timers. @@ -69,7 +69,7 @@ impl Wdt { pub fn new(wdt: WDT, scu: Scu) -> Self { // Haven't resolved yet fully how i want to deal with this. // Need to do more reading. - let w = Wdt { wdt: wdt, scu }; + let w = Wdt { wdt, scu }; w.enable(); w }