Fix nightly lint errors (#2537)

This commit is contained in:
Jesse Braham 2024-11-13 23:59:55 -08:00 committed by GitHub
parent 014a04faad
commit 959631ee55
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 9 additions and 9 deletions

View File

@ -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 {

View File

@ -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,
{

View File

@ -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,
{
@ -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,
{

View File

@ -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();
}

View File

@ -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| {

View File

@ -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

View File

@ -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| {