diff --git a/esp-hal/src/gpio/mod.rs b/esp-hal/src/gpio/mod.rs index 1a329590450..98b2d47f708 100644 --- a/esp-hal/src/gpio/mod.rs +++ b/esp-hal/src/gpio/mod.rs @@ -1499,7 +1499,7 @@ pub struct Flex<'d, P = AnyPin> { impl

private::Sealed for Flex<'_, P> {} -impl<'d, P> Peripheral for Flex<'d, P> { +impl

Peripheral for Flex<'_, P> { type P = Self; unsafe fn clone_unchecked(&self) -> Self::P { Self { diff --git a/esp-hal/src/i2c/master/mod.rs b/esp-hal/src/i2c/master/mod.rs index 167a1b855f7..fbbd8729904 100644 --- a/esp-hal/src/i2c/master/mod.rs +++ b/esp-hal/src/i2c/master/mod.rs @@ -816,7 +816,7 @@ where } } -impl<'d, T> embedded_hal_async::i2c::I2c for I2c<'d, Async, T> +impl embedded_hal_async::i2c::I2c for I2c<'_, Async, T> where T: Instance, { diff --git a/esp-hal/src/rmt.rs b/esp-hal/src/rmt.rs index dc2d4e916e3..f1c0975e6d5 100644 --- a/esp-hal/src/rmt.rs +++ b/esp-hal/src/rmt.rs @@ -1138,7 +1138,7 @@ pub trait TxChannelAsync: TxChannelInternal { /// Start transmitting the given pulse code sequence. /// The length of sequence cannot exceed the size of the allocated RMT /// RAM. - async fn transmit<'a>(&mut self, data: &'a [u32]) -> Result<(), Error> + async fn transmit(&mut self, data: &[u32]) -> Result<(), Error> where Self: Sized, { @@ -1201,7 +1201,7 @@ pub trait RxChannelAsync: RxChannelInternal { /// Start receiving a pulse code sequence. /// The length of sequence cannot exceed the size of the allocated RMT /// RAM. - async fn receive<'a, T: From + Copy>(&mut self, data: &'a mut [T]) -> Result<(), Error> + async fn receive + Copy>(&mut self, data: &mut [T]) -> Result<(), Error> where Self: Sized, { diff --git a/esp-wifi/src/ble/controller/mod.rs b/esp-wifi/src/ble/controller/mod.rs index 41a6ae188cb..07228eb1208 100644 --- a/esp-wifi/src/ble/controller/mod.rs +++ b/esp-wifi/src/ble/controller/mod.rs @@ -11,7 +11,7 @@ pub struct BleConnector<'d> { _device: PeripheralRef<'d, crate::hal::peripherals::BT>, } -impl<'d> Drop for BleConnector<'d> { +impl Drop for BleConnector<'_> { fn drop(&mut self) { crate::ble::ble_deinit(); } diff --git a/esp-wifi/src/esp_now/mod.rs b/esp-wifi/src/esp_now/mod.rs index 4ee12c909e1..83786e1f143 100644 --- a/esp-wifi/src/esp_now/mod.rs +++ b/esp-wifi/src/esp_now/mod.rs @@ -501,7 +501,7 @@ impl EspNowManager<'_> { } } -impl<'d> Drop for EspNowManager<'d> { +impl Drop for EspNowManager<'_> { fn drop(&mut self) { if unwrap!( crate::flags::WIFI.fetch_update(Ordering::SeqCst, Ordering::SeqCst, |x| { diff --git a/esp-wifi/src/lib.rs b/esp-wifi/src/lib.rs index d370bdd707f..fbad7bd34f7 100644 --- a/esp-wifi/src/lib.rs +++ b/esp-wifi/src/lib.rs @@ -233,7 +233,7 @@ pub struct EspWifiController<'d> { _inner: PhantomData<&'d ()>, } -impl<'d> EspWifiController<'d> { +impl EspWifiController<'_> { /// Is the WiFi part of the radio running pub fn wifi(&self) -> bool { crate::flags::WIFI.load(Ordering::Acquire) > 0 @@ -261,7 +261,7 @@ impl<'d> EspWifiController<'d> { } } -impl<'d> Drop for EspWifiController<'d> { +impl Drop for EspWifiController<'_> { fn drop(&mut self) { if crate::flags::ESP_WIFI_INITIALIZED.load(Ordering::Acquire) { // safety: no other driver can be using this if this is callable diff --git a/esp-wifi/src/wifi/mod.rs b/esp-wifi/src/wifi/mod.rs index 7bb5ce6ce06..dbab7ada004 100644 --- a/esp-wifi/src/wifi/mod.rs +++ b/esp-wifi/src/wifi/mod.rs @@ -2399,7 +2399,7 @@ pub struct WifiController<'d> { sniffer_taken: AtomicBool, } -impl<'d> Drop for WifiController<'d> { +impl Drop for WifiController<'_> { fn drop(&mut self) { if unwrap!( crate::flags::WIFI.fetch_update(Ordering::SeqCst, Ordering::SeqCst, |x| {