Skip to content

Commit

Permalink
Fix clippy warnings (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
usbalbin authored Dec 3, 2024
1 parent fca3989 commit 13519fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/flash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pub struct FlashWriter<'a, const SECTOR_SZ_KB: u32> {
flash_sz: FlashSize,
verify: bool,
}
impl<'a, const SECTOR_SZ_KB: u32> FlashWriter<'a, SECTOR_SZ_KB> {
impl<const SECTOR_SZ_KB: u32> FlashWriter<'_, SECTOR_SZ_KB> {
#[allow(unused)]
fn unlock_options(&mut self) -> Result<()> {
// Check if flash is busy
Expand Down
2 changes: 1 addition & 1 deletion src/rcc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ impl Rcc {
let us_per_s = 1_000_000;
// Number of cycles @ sys_freq for 1us, rounded up, this will
// likely end up being 2us since the AHB prescaler is changed
let delay_cycles = (sys_freq + us_per_s - 1) / us_per_s;
let delay_cycles = sys_freq.div_ceil(us_per_s);
cortex_m::asm::delay(delay_cycles);

self.rb
Expand Down

0 comments on commit 13519fc

Please sign in to comment.