fix clippy, run fmt

This commit is contained in:
Andrea Nall 2021-06-26 23:45:28 -05:00 committed by 9names
parent 0d19834b2e
commit 90a6f8414d
2 changed files with 21 additions and 21 deletions

View file

@ -33,7 +33,7 @@ impl ClocksManager {
let shared_clocks = ShareableClocks::new(&mut clocks_block);
ClocksManager {
clocks: clocks_block,
shared_clocks: shared_clocks,
shared_clocks,
}
}
@ -45,21 +45,21 @@ impl ClocksManager {
/// Getter for the Reference Clock.
pub fn ref_clock(&self) -> ReferenceClock {
ReferenceClock {
shared_dev: self.shared_clocks.clone(),
shared_dev: self.shared_clocks,
}
}
/// Getter for the System Clock
pub fn sys_clock(&self) -> SystemClock {
SystemClock {
shared_dev: self.shared_clocks.clone(),
shared_dev: self.shared_clocks,
}
}
/// Getter for the PeripheralClock
pub fn peripheral_clock(&self) -> PeripheralClock {
PeripheralClock {
shared_dev: self.shared_clocks.clone(),
shared_dev: self.shared_clocks,
}
}
}