Skip to content

Commit

Permalink
Fix nightly lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jessebraham committed Nov 14, 2024
1 parent c19c7fc commit 79c720b
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion esp-hal/src/gpio/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1499,7 +1499,7 @@ pub struct Flex<'d, P = AnyPin> {

impl<P> private::Sealed for Flex<'_, P> {}

impl<'d, P> Peripheral for Flex<'d, P> {
impl<P> Peripheral for Flex<'_, P> {
type P = Self;
unsafe fn clone_unchecked(&self) -> Self::P {
Self {
Expand Down
2 changes: 1 addition & 1 deletion esp-hal/src/i2c/master/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ where
}
}

impl<'d, T> embedded_hal_async::i2c::I2c for I2c<'d, Async, T>
impl<T> embedded_hal_async::i2c::I2c for I2c<'_, Async, T>
where
T: Instance,
{
Expand Down
4 changes: 2 additions & 2 deletions esp-hal/src/rmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1138,7 +1138,7 @@ pub trait TxChannelAsync: TxChannelInternal<Async> {
/// 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,
{
Expand Down Expand Up @@ -1201,7 +1201,7 @@ pub trait RxChannelAsync: RxChannelInternal<Async> {
/// 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<u32> + Copy>(&mut self, data: &'a mut [T]) -> Result<(), Error>
async fn receive<T: From<u32> + Copy>(&mut self, data: &mut [T]) -> Result<(), Error>
where
Self: Sized,
{
Expand Down
2 changes: 1 addition & 1 deletion esp-wifi/src/ble/controller/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion esp-wifi/src/esp_now/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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| {
Expand Down
4 changes: 2 additions & 2 deletions esp-wifi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion esp-wifi/src/wifi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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| {
Expand Down

0 comments on commit 79c720b

Please sign in to comment.