Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmarkov committed Jan 15, 2025
1 parent 9de95e1 commit 098b77b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/adc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,8 @@ mod oneshot_legacy {
}

#[cfg(all(esp32, esp_idf_version_major = "4"))]
impl<'d> embedded_hal_0_2::adc::OneShot<super::ADC1, u16, crate::hall::HallSensor>
for AdcDriver<'d, super::ADC1>
impl embedded_hal_0_2::adc::OneShot<super::ADC1, u16, crate::hall::HallSensor>
for AdcDriver<'_, super::ADC1>
{
type Error = EspError;

Expand Down
1 change: 1 addition & 0 deletions src/i2c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const XTAL_TICK_PERIOD_NS: u32 = 1_000_000_000 / XTAL_CLK_FREQ;
pub struct APBTickType(::core::ffi::c_int);
impl From<Duration> for APBTickType {
#[cfg(any(esp32, esp32s2))]
#[allow(clippy::manual_div_ceil)]
fn from(duration: Duration) -> Self {
APBTickType(
((duration.as_nanos() + APB_TICK_PERIOD_NS as u128 - 1) / APB_TICK_PERIOD_NS as u128)
Expand Down

0 comments on commit 098b77b

Please sign in to comment.